$("#Sidebar li div").click(function ()
{
$("#Sidebar li div").removeClass('leftselected');
$(this). addClass('leftselected');
});
Is this a callback function? What does ("#Sidebar li div").click mean? What does #Sidebar followed by two li and div mean?
You need to look at some basic things, search for "jquery selector", and then you will understand.
You need to look at some basic things. Search for "jquery selector", and then you will understand.
("#Sidebar li div") is the div of the child element of li under the element Sidebar...that is, Sidebar is the parent element of li and li is the parent element of DIV. ·I am also just learning