Forum Moderators: open

Message Too Old, No Replies

Question about drop drown menu validation problem

Why doesn't this validate?

         

kingdean

10:49 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



I have a drop down menu on my site that works fine, but when I validate the page it says that there are a bunch of problems.

Here is the script.

------------------
<SCRIPT>
function getSelect(s) {
return s.options[s.selectedIndex].value
}
</SCRIPT>
------------------

The error I get is "required attribute 'TYPE' not specified". Does anyone know what I need to do to fix this to make it validate correctly?

Thanks
Dean

encyclo

12:19 am on Oct 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The
script
element requires the type to be specified:

<script [b]type="text/javascript"[/b]>
// your script here
</script>