as the title says, I keep getting \"undefined\" when I try to get the id attribute of an element, basically what I want to do is replace an element with an input box when th
In the function context "this" its not referring to the select element, but to the page itself
var ID = $(this).attr("id");
var ID = $(obj).attr("id");
If obj is already a jQuery Object, just remove the $() around it.