How to get the class of the clicked element?

后端 未结 6 1827
抹茶落季
抹茶落季 2020-11-29 16:34

I can\'t figure it out how to get the class value of the clicked element.

When I use the code bellow, I get \"node-205\" every time

6条回答
  •  萌比男神i
    2020-11-29 16:57

    This should do the trick:

    ...
    select: function(event, ui){ 
       ui.tab.attr('class');
    } ,
    ...
    

    For more info about the ui.tab see http://jqueryui.com/demos/tabs/#Events

提交回复
热议问题