IValue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sfdgkjhldsfg@mailinator.com

    #1

    IValue

    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

  • saint exupery

    #2
    Re: IValue

    ivalue? i've never heard of that.

    to select a value, you must use the "selected" property.

    <option value="1" selected="selec ted">One</option>

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: IValue

      saint exupery wrote:[color=blue]
      > ivalue? i've never heard of that.
      >
      > to select a value, you must use the "selected" property.
      >
      > <option value="1" selected="selec ted">One</option>[/color]

      I suppose, ivalue is in WML.

      --
      <?php echo 'Just another PHP saint'; ?>
      Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

      Comment

      Working...