Juc1 Posted April 17, 2020 Share Posted April 17, 2020 Hi all, I have copied https://www.w3schools.com/howto/howto_custom_select.asp to https://codepen.io/Juc1/pen/LYpNddq Can anyone please tell me how I can show corresponding content below the select list eg an image of the relevant car? (Using this or other Javascript but not jQuery) Thanks... Link to comment Share on other sites More sharing options...
Makwana Prahlad Posted April 20, 2020 Share Posted April 20, 2020 try it <select> <option style="background-image:url(male.png);">male</option> <option style="background-image:url(female.png);">female</option> <option style="background-image:url(others.png);">others</option> </select> Link to comment Share on other sites More sharing options...
dsonesuk Posted April 20, 2020 Share Posted April 20, 2020 Not IN select list option, below, select BMW, a Image of BMW appears with content below. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now