SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: javascript

  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript

    Hi,

    I am delveloping javasript applications and I have one doubt.I have two dropdown list box,one for state and another for city.If we click one state, you will get related cities for that state.and I have one botton.once we click submit button we will go to another page.In that page we click back button,we will get previous page but selected state is will be there but city box is empty.I want clear explaination.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,826
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You need to set the script up to store the selected entries in a cookie and then read them back when redisplaying the page. Some browsers won't even track the selected state unless you do that.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •