projectmonkey projectmonkey - 8 months ago 38
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


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();