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

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -