Wednesday, 11 September 2013

jquery selection attributes

jquery selection attributes

Let's say I have a sample table like this :
http://jsfiddle.net/65BkH/
Now what i want is, if there is this <button id="invite">Invite</button>.
I want this button to select the "invite url" of the selected contact. If
you see the jsfiddle, if you click the checkbox, it will crop all the
others contacts. How could i do that?
I've tried to target the contact, but i can only get the top contact.
$('#linkedin_match tbody .match .m a').attr('href');
what i want is to target the currently selected.

No comments:

Post a Comment