In Select Onchange javascript (don't use onclick) function and getting HTML element by Id.

preview_player
Показать описание
By selecting the option in Select tag, Onchange ( Use of onclick will not work in mobile device) javascript function displaying particular HTML element based on Id. In video shown "onclick", please consider as "onchange. Thank you.
Рекомендации по теме
Комментарии
Автор

Thank you so much for this. I was looking at ways to display specific table rows based on the choice of a select box. After 3 failed attempts, I watched this video and got it working in less than 5 minutes. Cheers!

turbz
Автор

ok, now how do I get the VALUE (x) out of the DISPLAY function? THANK YOU

ronmanta
Автор

To resolve mobile device not changing, simply change onclick to onchange in the select tag.

husseinharajli
Автор

On my mobile phone, when I tap the selection it doesn't show, I need to tap again (just tap the button of select) and it will show the results

PhilMinecraft
visit shbcf.ru