0

I use this script:

$(document).ready(function() {

         $page = jQuery.url.attr("file");

         alert(page);


       });

but I get error jQuery.url is undefined and through firebug I was able to make sure that jquery.js is loaded

please advise

thanks

2
  • 3
    You really shouldn't prefix your non-jQuery-object variables with $. It is ugly and will confuse people (including you, in the line after you did not add the $). Besides that, use var to avoid creating globals. Commented Mar 31, 2012 at 23:26
  • Thanks alot ThiefMaster I appreciate your advices and will do it Commented Apr 1, 2012 at 1:39

1 Answer 1

8

There is no built-in $.url function. You're missing the jQuery URL plugin.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.