How could i hide all li items except one?? I would like to hide all element s of li excepting a particular li item
Will this work??
$(".divmenu").find('li').css("display", "none");
$(".divmenu").find('li nth-child(4)').css("color", "red");
Or like this??
$(".divmenu").find('li:not(nth-child(4))').css("display", "none");
This one seems simple but it is not working ..Might be wrong syntax?? Please anybody provide simple and efficient techniques