Script Tag Works Inside The Body But Doesn't Work Outside
Hi I made a webpage that uses modal to display the output, I came in a scenario where in I put my script tags inside the body and the program work out fin, however when I was clean
Solution 1:
Try to write you code in $(document).ready() so that you DOM
is ready to use, otherwise it may not work
Try it like,
$(function(){
// your js code
});
Post a Comment for "Script Tag Works Inside The Body But Doesn't Work Outside"