I'd suggest an alternate course of action...  as there is no "change"
event for a <form> tag

http://www.w3schools.com/htmldom/event_onchange.asp

like maybe not wire up the "change" event, but rather the "focus"
event, which <form> doesn support, check the target as an input:text,
and then wire the change event at that point.....



On Apr 1, 5:35 pm, Adam Patt <adamp...@gmail.com> wrote:
> I want to set the onChange event for a lot of text boxes on a page and
> the code I currently have looks like this:
>
>         $(document).ready(
>             function() {
>                 //wire up all changes
>                 $("#requirementsgrid :text").change
> (find_and_total_week);
>             }
>         );
>
> The number of text boxes can be very large based on the results.  Is
> this the most efficient way to set an onChange event for a lot of
> items on a page or is there a way for me to catch an on change for
> something like the form and then determine what actually made the
> change?
>
> It can take 5-10 seconds for this set to happen on page load.

Reply via email to