Get a handle on the ID of an Element
Hi
Im new to Jquery. Its really funky. But Im having an issue now. My code is
-
$("button[name=Replace]").click(function() {
new AjaxUpload($(this),{
.....
So I have a list of buttuns. they all have the same name. name="Replace"
Each id is Replace1, Replace2, etc
I want to get a handle on the id of the button that was pressed
I have tried the following combinations
-
$(this).attr(id)
$(this).attr("id")
$(this)
this.attr("id")
this.attr(id)
this.id
$(this).id
this.id
this.childNodes[0].id
this.childNodes[1].id
this.firstChild.id
Please help
Thanks
Alan