I append a text in my table cell using a click event.Now i need to remove the selected text using another click event. how can i make it possible <p>I append a text in my table cell using a click event.Now i need to remove the selected text using another click event. how can i make it possible</p> <pre><code>$( "#btsubmit" ).click(function(){ $("#our_table td.highlighted").append("&lt;span id='sp1'&gt;Appended&lt;span&gt;"); }); $( "#btnClose" ).click(function(){ }); </code></pre>