search the forum but I did not find a solution, what I'm looking for is that from an option that has the numbers 1, 3 and 5 defined, you can select the same quantities in a list with inputs to send a form by mail, I appreciate the help
<li>
<label>No. de Seminarios de tu interes <span class="required">*</span></label>
<select name="seminarios" name="seminarios" id="seminarios" >
<option>1</option>
<option>3</option>
<option>5</option>
</select>
</li>
<li> Selecciona los seminarios
<p><input type="checkbox" value="seminario1">Seminario 1</p>
<p><input type="checkbox" value="seminario2">Seminario 2</p>
<p><input type="checkbox" value="seminario3">Seminario 3</p>
<p><input type="checkbox" value="seminario4">Seminario 4</p>
<p><input type="checkbox" value="seminario5">Seminario 5</p>
</li>
and as such the only code that arrived was this but I think it's not the right one
$(document).ready(function(){
$(‘#cantidad’).change(function(){
var valor= $(“#cantidad”).val();
if (valor==4){ $(‘#seminarios’).selectmenu( “1” );
}else{
$(‘#seminarios’).selectmenu( “3” ); }
})
})
Thank you!