I am working on select box and using jquery.
HTML structure:
<form method="" action="" name="form_controller">
<select name="select_pages" id="selector">
<option id="select_e1_home">Home</option>
<option id="select_e1_resin_collection">Resin Collection</option>
<option id="select_e1_metal_collection">Metal Collection</option>
<option id="select_e1_decor_track">Decor Track</option>
<option id="select_e1_accessories">Accessories</option>
<option id="select_e1_acrylic_collection">Acrylic Collection</option>
<option id="select_e1_novelty_collection">Novelty Collection</option>
<option id="select_e1_wood_collection">Wood Collection</option>
<option id="select_e1_specification">Specification</option>
</select>
</form>
Jquery:
$('#selector #select_e1_home').click(function(e){ e.preventDefault(); $('#mybook, #mybook1').booklet(1); });
$('#selector #select_e1_resin_collection').click(function(e){ e.preventDefault(); $('#mybook, #mybook1').booklet(3); });
When i select option from select box on the basis of id i am setting the booklet numbers on the DIV who’s is mybook and mybook1.
My problem is the above jquery is working properly in all browsers except Chrome and safari. Can any one point me in right direction.
1 Answer