184579/jquery-if-change-or-keyup
Using jQuery i would like to run a function when either .change() or .keyup() are raised.
Something like this.
if ( jQuery(':input').change() || jQuery(':input').keyup() ) { alert( 'something happened!' ); }
you can bind to multiple events by separating them with a space:
$(":input").on("keyup change", function(e) { // do stuff! }) hope that helps. cheers!
Hello @kartik, With jQuery: $.ajax({ url:'http://www.example.com/somefile.ext', ...READ MORE
Hello @kartik, for the plugins that doesn't use ...READ MORE
Hello, you can try $("#deliveryNext").is(":disabled") The following code works for ...READ MORE
Hello @kartik, You should try doing something like ...READ MORE
A named function declares a name as ...READ MORE
Hey, jQuery is a fast and concise JavaScript ...READ MORE
Hello, Use the following script tag in your ...READ MORE
Hello @kartik, You have provided wrong order for ...READ MORE
We need to validate a password every ...READ MORE
for jQuery if ($('input.checkbox_check').prop('checked')) { ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.