when i change the option the image changes im okay with that but as you can see there is title2 on there i want to get both what imean by that is it will both change the image and set the title as that title how can i do that i want to use both image and the title.
Hi there. I am not sure what you are using your onChange function on but you will probably need to make sure that whichever image gets called, the corresponding title2 also gets pulled. For example if you are getting the image associated with car[0] you will want the title2 for car[0]. You can use a Math method if what you are wanting to pull is random and then apply it to what you are returning or a map or loop if you want to pull them in order. Hope this helps.
One option might be to use the options.selectedIndex property to get the index of the option element that was selected and use that index for the car array. That way you can get to whatever properties on the car object you need.