P.Brian.Mackey P.Brian.Mackey - 1 year ago 69
Javascript Question

jQuery - hide a span on document.ready

I want to hide a span on document.ready. I tried

<script type="text/javascript">
//Set the stuff we want to be able to use in javascript, but not display in the browser window invisible
function () {

But, I get error "Object doesn't support this property or method" in IE7 debugger. I verified in the source that the object exists as a
and the id is correct.

Answer Source

Try this:

        function () {

You left off the $.