[Solved] Can I add javascript within jQuery ready function? [closed]


What you did not understand is that Jquery is only a library for JavaScript. It’s just a set of functions available to you for easier, faster writing of JavaScript. Either you use only the Jquery functions or native js, it doesn’t change the end result.

When you do $("#myID") it’s the same as you would do document.getElementById("myid").

People use Jquery to go faster, that’s all. you can mix jquery and javascript how you like it as long as you don’t do stuff like document.getElementById($("#myId")) which is completly false.

solved Can I add javascript within jQuery ready function? [closed]