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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -