I have page X.
in X, i put in the head tag, a script tag.
the script needs to scan the body once the body has done rendering.
I tried jQuery.ready() but it is not called!
Can it be that the DOM is ready before the script is starting to run?
what can I do?
thanks
jQuery.ready()isn’t a function (well, not the handler you want anyway), what you want isjQuery(document).ready(), like this:Or, the shorter form: