0

before this I wrote all jquery-code into main fail. Now I want to move it into another js-file. The problem is that it doesn't want work correctly. Here is an error by FireBug:

$ is not defined

$(document).ready(\n

So, as I understand, I have to initialize $-var... But how?

Thanks.

asked Nov 1, 2009 at 11:54

1 Answer 1

3

Include jQuery before the file that uses it.

answered Nov 1, 2009 at 11:56
Sign up to request clarification or add additional context in comments.

1 Comment

Heh... I have no words :) Thanks.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.