Hi!
I wanted a function that when I click a checkbox, info from one text-input move to another text-input on antoher form.
Ie Ive got 2 forms and I want to change data between them.
Ive tried with the following javascript;
Code:
function ifylld(test)
{
alert(text);
}
and then the following inside one of the form in php;
I want the variable "$row_lev[Levplats]" to follow along to the javascript.
Code:
echo "<input type='checkbox' name='flytta' value='1' onclick='JavaScript:ifylld(" .$row_lev[Levplats] . ")'>";
I only get a error saying that the variable is undefiend.
Any help????
/Hylsan