Hi guys, I'm having trouble with a bit of jQuery. It seems that if I include the following lines into my code, the page follows the link that i'm clicking instead of staying on the same page:
var $ref = $("#calendar .#navleft").attr("href").text(); $("#calendar .nav").attr("href", $ref.substring(0, ($ref.length-1)).append('1')); What this should do is find the HREF of the anchor and change the last character to a 1. I have to do this twice per query (as there are two links to be changed). Firebug tells me the JS is fine, but I believe it's something to do with the presence of the substring which makes return false fail. Any help would be appreciated. Many thanks Steve