.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> JQuery >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

clear all textboxes using jquery

Posted By:Amit Mehra       Posted Date: March 10, 2010    Points: 10    Category: JQuery    URL: http://www.dotnetspark.com  

clear all textboxes using jquery in asp.net. If you need to rest all the text box or you want to delete all the value from TextBox in one button click.

If you need to have reset button functionality in your asp.net web page and you wanted to use JQuery to clear all the textbox available in the form that you can use below JQuery function to reset all the textbox to empty. This will clear or delete all the data from text box in one button click

Make sure that all the textbox should be in one container. It could be html div tag. In below function I have use one div tag with id ="myDiv".


$('#myDiv input').val("");

Below JQuery function will find all the textbox avail;able inside div tag and it will clear the user entered value from it.




Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend