Menu
Hi
I want to set the focus on the field that must be filled
i am using this script:
<?php
print “<script>
print “document.myform.$fieldname.focus();”;
print “</script>”;
?>
but i am getting the error:
document.myform.fieldname is null or is not an object.
How can i fix?
there is another javascript sintax i can use to focus on an object?