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
$(document).ready(function() {
$("a[href^='/']").each(function(){
var cur_href = this.href; /* <-- access to the href attribute
through the DOM reference */
$(this).prop("href", 'http://www.mysite.com'+cur_href);
});
});