Load Script Async? October 26, 2023 Post a Comment EDIT: I want to save input data from my form into Firebase database The input with id='field0' and button with onClick'submitPost()' Solution 1: Try this, by using the load event of the script tag: https://jsfiddle.net/7mnns4dk/6/Basically just use: script.load = function() { // enter code that needs the script to be loaded here } CopyAlso it works with jQuery as you wrote it, just move the submitPost function so that it is accessible by the button: https://jsfiddle.net/7mnns4dk/7/Baca JugaGet Index Of Parent Based On Child In JqueryHow To Traverse Each Property Of Json StringJquery Event To Fire When A Drop Down Is Selected -- But The Value Is Not Changed Share You may like these postsHow To Unsubscribe Or Dispose An Interval Observable On Condition In Angular2 Or RxJS?Optional Callback Not Being Called In The Node.js Async Module's ForEachOf MethodAppend Canvas Images To Input Array With JavaScriptAsynchronous Execution In Javascript Any Solution To Control Execution? Post a Comment for "Load Script Async?"
Post a Comment for "Load Script Async?"