in reply to Re^2: Javascript with CGI
in thread Javascript with CGI

Well your problkem is that you need to add the 'id' attribute. According to the CGI.pm docs, you can add it with a named parameter using '-id' but you'll have to change the way you pass the name parameter. This works:
$textfield = CGI->textfield({ -name => 'name', -id => 'name' });
as does this:
$textfield = CGI->textfield(-name => 'name', -id => 'name');