SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: select tag

  1. #1
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question select tag

    Hi,

    i have a select tag with several options.
    when my user select 1 option, he will be redirected to a page.
    he can click a "Back" button to return to the previous page with this select.

    however, in this case, i would like to keep (display) in the select tag, the latest option selected, in order to inform him about his last choice.

    how can i do that ?

    thx.

    Al.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You would need to set a cookie to remember the option that was selected, then retrieve that when they return.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •