first let me clear what I am trying to do ......
I am trying to do some trick with multiple select box....like every time I want to press Ctr or Shift before selecting multiple value ...I want to come out from this
so this is my select box
<select style='width:200%;height:200px' name='subCat_574' multiple='multiple' id='subCat_574' >
<optgroup label='7.3 Medidas colectivas de proteccion'>
<option value='26'>7.3.2 se?alizacion del area </option>
<option value='27'>7.3.4 control de acceso </option>
<option value='28'>7.3.5 manejo de desniveles y orificios (huecos) </option>
<option value='29'>7.3.3 barandas </option>
</optgroup>
<optgroup label='7.4 Medidas de proteccion contra caidas'>
<option value='30'>7.4.2.5 otras consideraciones </option>
<option value='31'>7.4.2 medidas activas de proteccion </option>
</optgroup>
<optgroup label='7.4.2.1 Sistemas de proteccion contra caidas (equipos) para seguridad en trabajos en altura.'>
<option value='32'>7.4.2.1 sistemas de proteccion contra caidas (equipos) para seguridad en trabajos en altura. </option></optgroup>
<optgroup label='7.4.2.2 Andamios'>
<option selected value='33'>7.4.2.2 andamios </option>
</optgroup>
<optgroup label='7.4.2.2. Nota 4 mensulas'>
<option selected value='34'>7.4.2.2. nota 4 mensulas </option>
</optgroup>
<optgroup label='7.4.2.3 Escaleras portatiles'>
<option value='35'>7.4.2.3 escaleras portatiles </option>
</optgroup>
<optgroup label='7.4.2.4 Proteccion contra caidas en carro tanques'>
<option value='36'>7.4.2.4 proteccion contra caidas en carro tanques </option>
</optgroup>
<select/>
<script src="jquery-1.7.min.js"></script>
<script>
$( "#subCat_574" ).change(function() {
alert($("#subCat_574").val());
alert( "Handler for .change() called." );
});
</script>
I tried this even I checked http://jsfiddle.net/x5PKf/766/ this answer for enter link description here but it is working for only select box but not for multiple select box
So please suggest me how I can deal with this ...I am just making R&D for this I have final solution to use checkbox tree instead of this but it will be very lengthy task ...so any Idea are welcome
Thanks and regards