Trouble Linking to Search Page w/ Keyword (#q=searchterm) in URL
This is still giving me some trouble. When I link to the search page with the following URL:
Uncaught Error: Syntax error, unrecognized expression #q=searchterm
Have you ever encountered this issue? It looks like jquery does not like a path followed by a hashtag.
I think it's just an issue with quote not being escaped correctly in your string.
If you do something like this it should work :
$("<a href=\"http://mysite.com#q=" + searchterm + "\" >mySite</a>")