javascript - Remove blankspace from td class with greasemonkey -


if have webpage example alot of <td class="house">111 22</td>. numbers random classname same , blankspace between numbers @ same position in of them, , want remove space in of them after page loaded. how should script work?

how using

var str = "111 22";         str = str.replace(" ",""); 

code example :

<script type="text/javascript">  //page initial  $(function() {      removespace();  });  function removespace(){    var str = $(".house").html();        str = str.replace(" ","");        $(".house").html(str);  }  </script> 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -