MY NODE
SHARING MY KNOWLEDGE
Saturday, August 7, 2010
jQuery - Get the element ID value of a clicked item
This is small tip that I found useful when completing a new project. As usual with jQuery everything is simple as 1 2 3
$('.clsname').click(function(){ var idval = this.id; });
1 comment:
Anonymous
February 11, 2012 at 4:15 AM
thanks!
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
thanks!
ReplyDelete