Vikal Singh

Vikal Singh

1 Articles Published

Articles by Vikal Singh

1 articles

How to trigger event in JavaScript?

Vikal Singh
Vikal Singh
Updated on 03-Oct-2019 900 Views

The trigger() method triggers the specified event and the default behaviour of an event (like form submission) for the selected elements.For example: $( "#foo" ).on( "click", function() {   alert( $( this ).text() ); }); $( "#foo" ).trigger( "click" );

Read More
Showing 1–1 of 1 articles
« Prev 1 Next »
Advertisements