How do I pass through an xsl variable to my inline JavaScript function? I want to in turn, process it and populate a table column.
<td>
<xsl:variable name="symbol" select="symbol"/>
<script language="javascript">
<![CDATA[
$(document).ready(function () {
getPrice('<xsl:value-of select="symbol"/>');
});
function getPrice(symbol)
{
alert(symbol);
var target = document.getElementById(symbol + '_price');
$( target ).html( 'test' );
}
]]>
</script>
<div id='{symbol}_price'></div>
</td>