projectmonkey projectmonkey - 1 year ago 140
CSS Question

Bootstrap show/hide li items based on li clicked in first dropdown

I am trying to show

items with a certain class in a second bootstrap dropdown based on the
item selected in the first dropdown.

$(document).ready(function() {
$("#mapContent ul li .show1").hide();

Here is my fiddle

Answer Source

You have a space li .show1 which tells jquery to search for children of li but you want the li, remove it to get the li's

$("#mapContent ul li.show1").hide();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download