I have the following code, written using jQuery:
var strval = '22'
$("#quicknote").attr("href",
"javascript:location.href=/'http://site.com/notes/add?projects=/'+ strval")
Which results in the following attribute:
<a href="javascript:location.href='http://site.com/notes/add?projects='+'strval'"
id="quicknote">
But, what I want is:
<a href="javascript:location.href='http://site.com/notes/add?projects='+'22'"
id="quicknote">
Any jQuery wizards know how I might achieve this result?