I have some jQuery code that is on every web page of the site (in the head element).
What selector syntax can I use to tell jQuery that a certain function should only ru
You can't specify the current URL in a jQuery Selector, you can however write a simple check using the document.location object:
if (document.location.pathname == "/somefolder/somepage") { // do some special stuff on this page! }