How do I get the id of the item which was just clicked?
For instance, if a user clicks a <td> which has a specific id, how do I use
this id in my script?
$(document).ready(function() {
$("td").click(function() {
// get the id of the table cell clicked
// use the id in a script
});
});
--
View this message in context:
http://www.nabble.com/Get-element-ID-tf2483865.html#a6926187
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/