Quote:
but when i use this code then each tyme page was refress and go to the other page where the css is not change.
Of course, dynamically set css properties are not persisted between calls.
So you either use
HTML5 local storage[
^] (if there is any), or you have to persist these changes on server side too: you can use an ajax call, to pass this change to the server, where it could be stored in a session variable for example.