I am having trouble passing an array to a java script function. here is my code.
Its weird I created another variable called test and set it equal to the array($test = "$row"; )
it worked, but does not show the word. What it does is just shows one of the letters if I do test in ....american('$test')... why wont it show the whole word when its just $test, and why nothing shows with $row
$test = "$row";
echo "<button onclick=american('$row')>$row</button><br />";