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!' );
}
EDIT
Sorry i forgot to mention. Both .change()
and .keyup()
need some of the variables to be in-scope.