hello all I have a problem with wraping a text or html with a tag, but the text should be placed in an attribute .
for example : i have a table like this <table> <tr><td><p>abc</p></td> <td>><p>def</p></td> <td>><p>ghe</p></td></tr> </table> i want to change each of the TDs to Textbox with value of its TD . i used this : $('table td p').prepend("<input type='text' value=' ").append(" '>"); but the result acted as text and not HTML . plz someone help me , tnx