Quote Originally Posted by rlhanson View Post
Is there any way to program the color selector button to change the background property to original state if clicked?
OK, I am going to try to let you figure this one out. If you look back, you will see 2-3 times I mentioned (and stressed) that Javascript commands are stackable, so that you can execute more than one.
For example: Here, you are putting in the word bold or normal in your hidden var, then you (see the semi-colon?) change the element in your template to show bold.
Code:
onclick="document.getElementById('BOLDname').value=(document.getElementById('BOLDname').value=='bold' ? 'normal' : 'bold'); document.getElementById('nameS').style.fontWeight=document.getElementById('BOLDname').value;"/>
So you need to do the same thing that would happen when a user clicks that when they click the color picker. The first thing you need to do is add an id to that radio button
id="noart"
Then, here is one of the 2 commands you will need to add to the existing colorgrid command
document.getElementById('noart').checked=true;