Using jQuery i would like to run a function when either .change() or .keyup() are raised.
.change()
.keyup()
Something like this.
if ( jQuery(
You could subscribe for the change and keyup events:
$(function() { $(':input').change(myFunction).keyup(myFunction); });
where myFunction is the function you would like executed:
myFunction
function myFunction() { alert( 'something happened!' ); }