Change the contents of a combo through a checkbox selection

  • Thread starter Fernando V. Jr.
  • Start date
F

Fernando V. Jr.

Dear friends,

I have a form in wich there are two check boxes and a combo as shown
bellow:
<form>
<input type="checkbox" name="check1" checked>Tipo 1
<input type="checkbox" name="check2" checked>Tipo 2
<br>
<select name="combo">
<option value="1">item 1</option>
<option value="2">item 2</option>
</select>
</form>

I'd like to change the contents of the combo by changin the selection
in the checkboxes.

I tried putting "onclick" events to be runned by JavaScript so that
some itens would be added at the end of the combo, but it didn't work.
I need to reload the page?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top