I have ul with a number of li inside. All li have an id "#category" but different classes (like ".tools", ".milk", ".apple").
Using jQuery. I do :
$("li#category").click(function(){ some_other_thing ( .... )});
now i have to put a li's class "name" — (a string indeed) inside the some_other_thing() function instead of ....
How it can be done?