forcing highlight of select

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • middletree

    forcing highlight of select

    I have a select box set to multiple. When the user hits the submit button, I
    want to make sure that all entries in that select box are highlighted. How
    can I do that? Can I put some code in the onSubmit event? If so, can someone
    help me with the syntax?


  • Lee

    #2
    Re: forcing highlight of select

    middletree said:[color=blue]
    >
    >I have a select box set to multiple. When the user hits the submit button, I
    >want to make sure that all entries in that select box are highlighted. How
    >can I do that? Can I put some code in the onSubmit event? If so, can someone
    >help me with the syntax?[/color]

    I must not understand what you're asking for.
    If all of the options are always supposed to be selected, why not
    just create them as selected in the HTML? Why use a selection box
    at all, for that matter? If the options are constant, why can't
    the server-side code simply know what the options are, so you don't
    have to send them?

    Comment

    • middletree

      #3
      Re: forcing highlight of select

      I did a poor explanation, sorry. I used a selection box which is prefilled
      with data from the DB, and let the user decide to add or delete items to the
      select box from another one just to the left of it. But this:
      [color=blue]
      > why not just create them as selected in the HTML?[/color]


      turned out to be the correct answer. Works like a charm. Thanks!


      Comment

      Working...