asp.net - jQuery: find child and bind to event -


I try to bind the event provided as change as I am doing the term from ASP.NET to a ASP: label . Obviously the container prefixes these controls with something like ctl00_ , but I do not want my script to depend on those identifiers which are not necessarily known.

span is updated via the AjaxControlToolkit PasswordStrength control, which is used for an aspen label ID , Which is valid for displaying its message message on input control.

Looking at it a bit, it looks like what I should do, because control has its own div container - I got the resource, and it shows that I must I can see the child with a selector, so the answer was completely promising so that I came up with the following which only slightly changes:

  & lt; Div id = "passwordhelpcontainer" class = "passwordfailureNotification" & gt; & Lt; ASP: label runat = "server" id = "passwordhap label" /> & Lt; / Div & gt; $ (Document) .ready (function () {$ ('# PasswordHelpContainer'). Children ('span: first'). Changes (function () {//});});   

Unfortunately there was no success in my efforts; and / code> together?

I know that the second question may seem contradictory for some, but if I need to, I will expand independently.

to

change event one Element is sent when its value varies this event & lt; Input & gt; element, & lt; Textarea & gt; box and & lt; Select & gt; elements . For select boxes, checkboxes and radio buttons, the event is promptly removed when the user selects with the mouse, but for other element types the event is postponed until the element loses focus.

The event will never be lifted because the label will be & lt; Span & gt; .

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -