To get the ID of an element using jQuery we Must do the Following:
$ ("a"). Click (function () {
var oid = $ (this). attr("id");
});
In the former case we get the id <a> element that was selected, how is this useful? , in the following example in a gridview is generated a dynamically link, this one's ID is the ID of the row , By clicking on the link to obtain the ID and query information related to this code from the client side, in this case opens a popup with the details of the consultation
0 comments:
Post a Comment