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
What are you expecting $(this) to refer to?
$(this)
Do you mean sel.attr("id"); perhaps?
sel.attr("id");