IValue
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

IValue

From: <sfdgkjhldsfg@mailinator.com>
Date: Wed Jun 29 2005 - 18:24:09 CEST

Hi,

This is driving me nuts, hopefully someone here can put me out of my
misery.

I'm generating a web page with drop down combo boxes, and I want one of
the values to be automatically selected.

I've googled and I understand that the ivalue attribute is the way to
do this. However take the following example:

<html>
<body>
<select name="boo" id="boo" ivalue="3">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
</body>
</html>

ivalue is set to 3, so therefore the third option is what should be
selected right? But when you view this code in any browser the initial
value is always "One" no matter what I set the ivalue attribute to.

Any ideas what I'm doing wrong?

Thanks
Received on Mon Oct 17 20:59:20 2005