Current position:  Home > Default > Retaining the Color of the row when it is refreshed in Javascript

Retaining the Color of the row when it is refreshed in Javascript

Time:October 11
Advertisement
Hi,
I have a checkbox when it is checked it will highlight the row with the color. When it is unchecked the color will go off. This is happening fine.
But the problem i have is that when i refresh the page or goes to some other page and come back the color is not retained eventhough the checkbox is checked.
I want the color to be retained even when the page gets refreshed.
Please do provide a solution for this since it is urgent. I will be waiting for ur replies..
Thanks,
M.Ananthu
Advertisement
try to make a hidden form that will hold the value of the colored form
ex. <input type="hidden" name="name" value="<%=colorOfForm%>"
you can pass this value to the next page.. so that when you go back to that page.. you will get the value of the hidden using request.getParameter(''name"); and set the color of the form using javascript