Markxxx
04-12-2008, 03:34 AM
I got this Javascript form for a combo box, it works fine but I like to have my stuff validate for XHTML 1.0 strict
Here is the link to the script
http://javascriptkit.com/script/cut185.shtml
Works great, as usual I stuck a link to the javacript into the webpage so I didn't have to worry about most of the javascript so I was left with this
<form name="jumpy">
<p><select name="example" size="1" onChange="gone()">
<option value="http://www.cnet.com">Cnet</option>
<option value="http://www.cnn.com">CNN</option>
<option value="http://www.geocities.com">Geocities</option>
</select>
<input type="button" name="test" value="Go!"
onClick="gone()">
</p>
</form>
I know you have to us lowercase for the XHTML to validate, how would you arrange this to validate? The name tag is depreciated but I was told to use ID but I'm not using this right cause it doesn't work
I'd appreciate any help
THanks
Here is the link to the script
http://javascriptkit.com/script/cut185.shtml
Works great, as usual I stuck a link to the javacript into the webpage so I didn't have to worry about most of the javascript so I was left with this
<form name="jumpy">
<p><select name="example" size="1" onChange="gone()">
<option value="http://www.cnet.com">Cnet</option>
<option value="http://www.cnn.com">CNN</option>
<option value="http://www.geocities.com">Geocities</option>
</select>
<input type="button" name="test" value="Go!"
onClick="gone()">
</p>
</form>
I know you have to us lowercase for the XHTML to validate, how would you arrange this to validate? The name tag is depreciated but I was told to use ID but I'm not using this right cause it doesn't work
I'd appreciate any help
THanks