JQuery Hide Div when Option is Selected
问题 I want to hide a class of a DIV when a specific OPTION Value is selected <select id="tagtype" name="type"> <option value="type_s">Standard</option> <option value="type_o">Overstock</option> <option value="type_snd">Scratch & Dent</option> <option value="type_mult">Multiples</option> </select> <div class="multiples>stuff here</div> <script type="text/javascript"> $(document).ready(function() { if ($("#tagtype option[value='type_mult']").length) $("multiples").css('display','none'); }); <