Can only refer to $(this) in jQuery delegate() callback -


normally when use .delegate() refer $(this) in callback function. if want affect other element on page? doesn't work:

    $("form#my-form").delegate("input#my-textbox", "change", function(){         $("#some-other-div").toggleclass("toggled");     }); 


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -