Plzz help me in dropdown of html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Plzz help me in dropdown of html

"You can use any other language if it needs" I need a type of dropdown in which if I select 1st option then it will change the text inside the dropdown. Example : If I made an dropdown with name select. So 1st I'll click on the select dropdown. Then it will show 4 options. let the options are Add, Subtract, Multiply and Divide. If I select the 1st option i.e Add. So I want that it will show '+' symbol after selecting Add option in dropdown. . . If u guys understand plzz solve this, if not msg me so that I can explain you more deeply. https://code.sololearn.com/WG0JOE4V8qNB/?ref=app

4th Apr 2021, 6:20 AM
Hrithik Mishra
Hrithik Mishra - avatar
2 Answers
+ 3
You can do it using JavaScript But it must be clearer what the idea is, and explain it point by point, What I understood from you now: Is that you want to create a drop-down selection menu with 4 options, and if you choose the first option, where the name appearing in the drop-down selection menu is (Add) and after choosing it a sign (+) appears See this example: https://code.sololearn.com/WA4a4a29A24A Dropdown list of math symbols Hope this may help you
7th Apr 2021, 7:24 AM
Mohammed Alotaibi
+ 1
Okay where is you code of html part?
6th Apr 2021, 4:23 PM
Charan Leo25
Charan Leo25 - avatar