javascript - Is JQuery to be used for onclick/onchange -


i new in jquery , confused on following:
supposed use jquery on onclick or onchange element via kind of: $(selector).somemethod(function(){....}); ?

sure use either, it's not required.

$(selector).on('click', function() { } ); $(selector).on('change', function() { } ); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -