Thread Starter
alvior
(@alvior)
Problem disappear…
I only updated same code..
Function looks normal now, did not run many times.
Thread Starter
alvior
(@alvior)
I found that if the “Linking type” select “External File”, “jQuery(document).ready(function( $ )” run 4 times.
And, “Linking type” select “Internal” only run 1 time.
But datepicker is not working under “Internal” type which function is belong to Jquery UI..
-
This reply was modified 5 years, 8 months ago by alvior.
-
This reply was modified 5 years, 8 months ago by alvior.
Thread Starter
alvior
(@alvior)
I test by another way, it looks like function of “jQuery(document).ready(function( $ )” run 4 times.
var i=0
jQuery(document).ready(function( $ ){
var button = $(“#button1”);
button.on(“click”, () => {
i++
alert(i);
});
});