View Single Post
Old 02-13-2013, 09:17 PM   PM User | #1
eydg
New Coder

 
Join Date: Sep 2012
Posts: 72
Thanks: 2
Thanked 1 Time in 1 Post
eydg is an unknown quantity at this point
randomly select an option upon clicking a radiobutton - a tiny correction needed

http://jsbin.com/apudev/9/edit

what it does is randomly picks a car from one of two lists chosen by the user.

the only thing is that the choice does not get reflected in the select field.

how to make it happen?
_____________________________________________________________
EDIT for clarity


Problem
once you click your choice of the country, the code should display in the select field a randomised brand, which it doesnot. it shows always either chevrolet of ford - the first cars from the list.

another indication that not all is well is that the alert appears twice each time, while it should only once.

pls help

Last edited by eydg; 02-15-2013 at 12:58 AM..
eydg is offline   Reply With Quote