Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = document.getElementById('a');
- var b = document.getElementById('b');
- a.style.cursor = 'pointer';
- b.style.cursor = 'pointer';
- a.onclick = function() {
- $("#a").css("background-color","red");
- };
- b.onclick = function() {
- $("#b").css("background-color","yellow");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement