Chaining is great in jQuery, but it chains the trigger of each event and doesn\'t wait for the previous event to finish. This is noticeable primarily when animating.
My application is having hundreds of pages. Now I have to attach an event disablePage on onSubmit of form. I don\'t want to go to each and every page and write:
If I run this code, var waitRow = $(this).parent().parent()开发者_JAVA技巧.next().get(0); $(waitRow).children(\'td:nth-child(2)\').html(\'some text\').toggle();