Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

How to get the element from a controller click event ?

$
0
0
Hi, I am working on a click event in a Controller, the thing is I'd like to get the full class name on the element I have clicked on.

  1. '[class*="sNext"] click' : function() { 
  2.       get the full class name // sNext1 mf1_direction
  3. what is the code to apply to get the full class name of this element clicked ?
  4. usually with Jquery I'll do $(this).attr('class')
  5. }
Any ideas  ?

Viewing all articles
Browse latest Browse all 3491

Trending Articles