In my asp.net application, I'm using jquery to clear the contents of textboxes in my form. I'm currently using this code to do this:

 $('#FillForm input').val(function () {
       return '';
});

This code clears textboxes well but it also clears the buttons I have on the forms -it sort of flashes the value since the default button name returns once again- but i don't want this to happen, I won't to clear the value for the input textboxes only, I'm looking for something like this:

 $('#FillForm input.textbox').val(function () {
                    return '';
                });

Is there any way to do this?

Related posts

Recent Viewed