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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -