We have a website that uses javascript, prototype for client scripting, We are starting to use jQuery now and convert from prototype. I understand little of jQuery but I have enough knowledge to get around.
I ran into a problem, is it possible to do like a global load of $(document).ready(function(){}); because we have a lot of js files and I want to be able do use jquery('#button').click() and things like that.
Only examples I have seen is on the page itself not a js file. Please post a short example code if possible thanks!
You can use
$(document).ready()from an included js file, just make sure you use put the<script>include after the jquery include so the$function is available.Edit: