Wednesday, September 19, 2012

make sure a function is called when a drop down list changes

This is jQuery. I have the blur (on leave, not focus which is on entry) as the 37,38,39,40 keys for arrows are not recognized in Internet Explorer 9.

$(detail16).live('click', function() {
   $(detail24).html(replacementHtml);
   retrieveOfficeItems();
});
$(detail16).keypress(function (e) {
   $(detail24).html(replacementHtml);
   retrieveOfficeItems();
});
$(detail16).blur(function (e) {
   $(detail24).html(replacementHtml);
   retrieveOfficeItems();
});

No comments:

Post a Comment