javascript - strip the text next to an input tag -
please me simple question:
code:
<span> <input id="elemento_20_1" name="elemento_20_1" class="elemento text" size="2" maxlength="2" value="" type="text"> / <label for="elemento_20_1">dd</label> </span>
with jquery, how can strip down "/" next input? try .next() didn't work @ all.
thanks!
$('span').contents().filter(function(){ return this.nodetype === 3; }).remove();
Comments
Post a Comment