Remove element by value
<p>I have implemented autocomplete using JQuery, and the records are stored in table td. Along with the name &amp; image of delete, when i click on delete image, I'm writing a function and sending the value ie, the name. I need to remove the value which i sent. How do i do? I tried splice, pop etc... it did not work.</p>

<pre><code>$(function() {
    function log( message ) {
    document.getElementById("poolName").value="";
    var _m = '&lt;div class="button" style="overflow:auto;"&gt;' + message + ' &lt;input type="image" name="submit" value="' + message +'" id="removeId" 
    src="/DataWeb/pages/images/delete-icon.png" height="10px" width="10px" onclick="removeData(value)"&gt; &lt;/div&gt;';
    _m += '&lt;div style="clear:both;"&gt;&lt;/div&gt;';
    $( "&lt;td&gt;" ).html( _m ).prependTo( "#log" )
    $( "#log" ).scrollTop( 0 );

}
}
</code></pre>

<hr>

<pre><code>function removeData(value){
    alert("inside remove");
    alert(value);

    // How do I remove the value??
}
</code></pre>
