HighDots Forums  

Clearing ASP.NET Label control using Jquery

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss Clearing ASP.NET Label control using Jquery in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bharath
 
Posts: n/a

Default Clearing ASP.NET Label control using Jquery - 11-07-2009 , 02:35 PM






I have a asp.net label control . The label is inside the control
Panel
and the page also has a master page. The label ID is lbErrorList.
The label gets rendered as
"ctl00_ctl00_SubApp1_SubContent_lbErrorList"
The page also contains many textbox which needs to be populated by
user. I am trying to check if the user has filled all the textbox.
If the user does not fill the text box , the user needs to be
notified
by adding corresponding error to the lbErrorList.
I am trying to append the error messages to label as
$("#ctl00_ctl00_SubApp1_SubContent_lbErrorList").a ppend(errorList);
// errorList is a temporary variable which has the error information.
problem is the label gets appended with error list content every time
I try to submit the form and if the validation goes wrong.
I would like to clear the label whenever the submit button is
clicked,
so that if error happens then only needed error messages is
displayed.
How can I archive this...??
In brief my question is how can I clear the lbErrorList using
jquery...???
Thanks in advance...

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.