Hi everyone. I really don’t know much about javascript so I need a little help. I am trying to alter a php shoutbox script to conform to my XHTML strict site. I have been succesful at making the script pass validation except for one error.
The error is cause by the name attribute in the form.
[CODE]<form action=”sign.php” name=”tagger” method=”get” onsubmit=”javascript: tagSubmit();”>
the javascript that goes with it is
[CODE]function tagSubmit() {
document.tagger.message.focus();
document.tagger.comment.value = document.tagger.message.value;
document.tagger.message.value = ”;
}
XHTML strict will not allow a name attribute in the form just in the inputs. My question is, Is there a way to change the name attribute to somthing else that will pass as XHTML strict? Somthing like id=”tagger”.
Or possibly move the name attribute to a hidden input? Any ideas? Any help would be apperciated…