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
your using this in a function, when you should be using the parameter.
this
You only use $(this) in callbacks... from selections like
$('a').click(function() { alert($(this).href); })
In closing, the proper way (using your code example) would be to do this
obj.attr('id');