0

How can I show different form by clicking in Select balise (using Php) ?

Hi guys I need your help please, How can I show different form by clicking in Select balise (using Php) ? I mean for example in Select Balise exist 3 options , for each option I choose, a Form will be shown .

16th Jul 2021, 7:20 AM
Ramzi Jebalia
Ramzi Jebalia - avatar
2 Answers
+ 4
Collect all forms into a collection. Add event handler for "change" event of the <select> element, and use for...of loop to switch a form's visibility by adjusting form 'style.display' property value to 'block' for showing it, or 'none' for hiding it. https://code.sololearn.com/WLbXfi61VtPs/?ref=app
16th Jul 2021, 10:01 AM
Ipang
+ 1
Ipang thank you so much , it was perfect , really thanks bro 🙏
16th Jul 2021, 10:08 AM
Ramzi Jebalia
Ramzi Jebalia - avatar