Because I already had an element(row) with the same id in the document. (It is a dynamically add row/remove row) kind of thing. So before adding it to the dom, I wanted to remove its id. The row id is the same because initially a
jsp is included for a single row and later the same jsp is retrieved via ajax.
Anyway, I removed the initial rows id attribute in onLoad. So now I can do the inplace thing. Infact I might not need the id in the first place...but there are other things being loaded in the row too...gotta look into that.
But still, I'd like to know what's the best way to get a DOM element out of text?