Skip to content Skip to sidebar Skip to footer

How To Trigger A Js Script Only After A Specific Function Is Called

basically this it a follow up of this question, How to keep the innerhtml content that is changed with the JS onclick function So i got that local storage question right (that was

Solution 1:

It looks like your first function is malformed? Are you trying to call a function called ready?

If you're using jQuery, the proper way to set a callback for when the DOM is ready is like so:

jQuery(document).ready(function() {
  // your code here
});

Or you can use the shorthand:

$(function() {
  // your code here
});

Post a Comment for "How To Trigger A Js Script Only After A Specific Function Is Called"