Menu
Hi,
I am new to coding and I am having problem passing background color to the javascript to store it in the cookie when someone clicks on the link and the div to change color to blue. Can anyone please let me know what I am doing wrong.
Is there any other way to pass the value for the background in the javascript and then call it. The code works when i pass it to the body of the page.
[CODE] <div id=”box1″ >
<a href=”#” onclick=”changecolor(‘box1’, ‘background-color:#00A’, ”)”>blue</a>
</div>
Thanks
GKz