SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2004
    Location
    France
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Combobox force position

    Hi there,
    here's my problem :
    i have a combobox in wich i can change the value with selectedIndex attribute, but how can i change the label or the selected position, because the value changes but the position don't ?
    Thanx in advance

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2004
    Location
    France
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've found the true mistake but i still don't understand why it doesn't work :
    Code:
    cb.selectedIndex = value;
    This doesn't work, neither the value nor the index change !!!
    And when i "trace" cb.selectedIndex, the result is "undefined" !
    And i'm sure of the path to reach the combobox.
    Help please :'(


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •