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(); 

http://jsfiddle.net/2aqww/


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -