jQuery: The Write Less, Do More JavaScript Library

Clear ASP.Net label control using Jquery...

View: New views
2 Messages — Rating Filter:   Alert me  

Clear ASP.Net label control using Jquery...

by Byte1234 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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-dev@....
To unsubscribe from this group, send email to jquery-dev+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.



Re: Clear ASP.Net label control using Jquery...

by Scott Sauyet-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 5, 2009 at 10:03 AM, Byte1234 <bharathph@...> wrote:
> 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...??

You're asking on the wrong list.  This list is for the development of
the jQuery library itself.  Discussions on how to use jQuery is on the
main list (http://groups.google.com/group/jquery-en).

Good luck,

  -- Scott

--

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