remove first span element after input

jquery

Solution

Within your live function, do this:

$(this).next("span").remove();

Problem

How to remove first span element after `<input id="mytxt" type="textbox"/>` , if it exists? ``` $('#mytxt').live('change', function(){ //TO DO } ```

Original source