+ 1

How to change colour using select and option tags ?

I want to select a number from dropdown,and based on that particular number choosen i want the colour to be changed in a table.

7th May 2020, 3:08 PM
bhavana hiremath
bhavana hiremath - avatar
3 Réponses
+ 1
You have to use a little bit of JavaScript for that. JavaScript has a change event using which you can detect that value of drop-down is changed. And then you can call a function that changes background color. Try to implement it, if you have further doubts then please let us see your attempt first.
7th May 2020, 3:16 PM
Raj Chhatrala
Raj Chhatrala - avatar
0
Sir, can we use this method in table?
7th May 2020, 3:53 PM
bhavana hiremath
bhavana hiremath - avatar