Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sele()
- {
- var select = document.getElementById('drop');
- var one = document.getElementById('val1');
- var two = document.getElementById('val2');
- var there = document.getElementById('val3');
- one.setAttribute('style', 'background-color: blue');
- two.setAttribute('style', 'background-color: red ');
- select.setAttribute('style', 'background-color: grey');
- }
Add Comment
Please, Sign In to add comment