I’m trying to write a function that will let the users click on a button and when they do, the border will change to 4px and the others will stay at 2px.
The code below is what I have but it doesn’t work
[code=php]
function keepBold1(){
document.getElementById(‘Button1’).style.border = ‘4px solid #36532E’;
document.getElementById(‘Button2’).style.border = ‘2px solid #36532E’;
document.getElementById(‘Button3’).style.border = ‘2px solid #36532E’;
document.getElementById(‘Button4’).style.border = ‘2px solid #36532E’;
document.getElementById(‘Button5’).style.border = ‘2px solid #36532E’;
document.getElementById(‘Button6’).style.border = ‘2px solid #36532E’;
}
Also, is it possible to assign two functions to happen on one onclick command in a DIV?
Example: <div id =”Button1″ onclick=”keepBold1();” onclick=”doSomethingElse();”>
Thanks for any help, it’s greatly appreciated