LyndonOHRC
Programmer
I'm trying to populate an input tag when text is clicked. It works great until the data contains an apostrophe. i.e. The value (DANCER'S CALL) is placed in the function dynamically by my server side database code. I'm having trouble figuring out how to solve the unbalanced delimiters this scenario presents. Any Help appreciated.
In case it helps, here's the ColdFusion Server side code that builds the onclick action:
Lyndon
Code:
onclick='document.getElementById("HorseName").value="DANCER'S CALL";
document.getElementById("HorseName").focus();'
In case it helps, here's the ColdFusion Server side code that builds the onclick action:
Code:
<span onclick='document.getElementById("HorseName").value="#getHName.hname#";document.getElementById("HorseName").focus();'>
[indent]#getHName.hname#[/indent]
</span>
Lyndon