validation - Trying to attach a keydown handler to an input element that doesn't break in ie7 -
i trying attach keydown handler input[type=text/password/email] elements within validation group won't break in ie7.
here's i've tried:
$(function() { $('.validationgroup input[type=text],\ .validationgroup input[type=password],\ .validationgroup input[type=email],\ .validationgroup input[type=tel],\ .validationgroup .causesvalidation\ ').keydown(ucp.validation.keydowneventhandler); });
any ideas?
i added keydown event on document , worked.
$(document).keydown(function () { $('.validationgroup input[type=text],\ .validationgroup input[type=password],\ .validationgroup input[type=email],\ .validationgroup input[type=tel],\ .validationgroup .causesvalidation\ ').on(ucp.validation.keydowneventhandler); });
Comments
Post a Comment