how can i remove particular word in a table cell using Jquery? -


how remove 'def' bellow table cells using jquery.

<table>     <tr>         <td>abc def</td>         <td>xyz def</td>         <td>lmn def</td>     </tr>     <tr>         <td>def</td>         <td>abc def</td>         <td>xyz def</td>     </tr> </table> 

edit can this:

$("td:contains(def)").each(function(){   var newtext = $(this).text().replace(/def/g, "");   $(this).text(newtext); }); 

hope helps. cheers


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -