Hopefully someone can explain some odd behavior I\'ve encountered with jQuery. The following script is looking for relative links on my page and replacing them with absolut
Try something like this:
if(! /http/.test( cur_href) ){ $(this).attr("href", 'http://www.mysite.com'+cur_href); }