Forum Moderators: open

Message Too Old, No Replies

XHTML document not validating when using onchange on form.

         

rexrhino

4:18 pm on Jun 25, 2004 (gmt 0)

10+ Year Member



I am using javascript with a XHTML 1.0 transitional document. I have a a form that is like this:

<form action="" name="bodyForm" onchange="wbReadCookies();">

Unfortunatly I am getting the following error:


there is no attribute "onchange"

Everything else validates, and as you can see, all the properties of the form are lower case. All the tags are properly formed. I noticed a few other people who had this problem, but none of the threads have the solution. Any insight anyone has for what could be causing this would be greatly appreciated!

Thanks,
Jason

DrDoc

4:22 pm on Jun 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's correct -- there is no
onchange
attribute for the form itself. You need to use that attribute with a form element, such as an input box, a select box, etc.

rexrhino

4:37 pm on Jun 25, 2004 (gmt 0)

10+ Year Member



Wow! Fast response! Thanks!