jQuery,找到li类名(在ul里面)

The*_*hts 6 javascript jquery

我有一些李里面的ul.所有li都有一个id"#category"但不同的类(如".tools",".mil",".apple").

使用jQuery.我做 :

$("li#category").click(function(){ some_other_thing ( .... )});
Run Code Online (Sandbox Code Playgroud)

现在我必须在some_other_thing()函数中放置一个li的类"name" - (确实是一个字符串)而不是....

怎么做?