Dear All
I have this script
<script>
var s = "my string 1|my stirng 2".split('|');
document.write ('<TD>')
for (var i = 0; i < s.length; i++)
{
document.write('<a onclick="alert(\'ggg\' +s[i] )">'+s[i]+'</a>');
}
document.write ('</TD>');
</script>
But i get an undefined error message in the alert function. i want to display the s[i] in an alert but getting confused with the string
can anyone help???????????