I need to add a jquery script into a javascript function and then call that function when #sortby is added to the url. Is this possible?
the jQuery
$("#myselect option[value='availability']").attr("selected","selected");
the Javascript
function sortBy(){
performanceQuery(perfpage);
tourQuery(tourpage);
return false;
}