I have a function which returns a string which contains a javascript call. Since it is quoted I cannot pass variables through it.
How can I change the return string which would enable me to pass javascript object values.
Ex: How can I pass var i
through the return statement.
var i = 'iaa';
return '<a href="javascript:abccd(\'i\');" ><img src="../images/btnsave2.png" style="margin:6px 0 0 6px;" height="13" width="13" /></a> ';