Dynamic Forms

  • HaydenJW
  • Novice
  • Novice
  • User avatar
  • Posts: 28
  • Loc: Rapid City, South Dakota

Post 3+ Months Ago

Hello everyone,

I've done some searching on the forum but I haven't been able to find anything that answers this question:

Is it possible through JavaScript to make a form made up of 3 drop-down inputs that each subsequent inputs is based off the input of the prior. I would like to have users be able to select the year of the automobile they are looking for; then, have the list of all makes available in that year; then, all the makes from that Year and Make. Then, submission will be sent to an ASP server, eventually getting them to a page for that specific car.

Thanks in advance,
Hayden
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Posts: 334

Post 3+ Months Ago

Of course. You can check the value of an element:
Code: [ Select ]
document.getElementById('myinput').value

And work from there.

You may want to look here:

http://www.javascript-coder.com/javascr ... t-form.htm
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Here is a sample that you could use to learn, or just use.

http://javascriptkit.com/script/script2/multiplecombo.shtml
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

I have done this before ... not with cars, but something similar ... I used jQuery's ajax calls to call in data from a database dynamically into a form ... http://www.jquery.com

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 138 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.