Answers for "load a script after a button is pressed js"

0

load a script after a button is pressed js

$( '#buttontest' ).on( 'click', function() {
    $.getScript( 'url to your js file', function( data, textStatus, jqxhr ) {
        // do some stuff after script is loaded
    } );
} );
Posted by: Guest on February-03-2021

Code answers related to "load a script after a button is pressed js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language