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").append(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...

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to