sorry for the poor-explained question before. what i need is to create a cookie which will store some data above some elements on the page, to be speciffic:
- a div that has the class "checked"
- a checked-state on a checkbox within that div
ive tried jquery-cookie but i dont understand how to utilize it for my script. this is what i need to store (sorry for the silly code):
$(document).ready(function() {
$('.SearchResaultBodyFullUseFulls input[type="checkbox"]').click(function() {
$(this).parent().parent().parent().parent().parent().parent().toggleClass('checked');
});
});
this is the coockie script that i need to use in my site:
$.cookie('the_cookie', 'the_value');
how do they connect?
you can see the html page here: http://nelband.com/absolute/AgentSearchResaults.html
what i need is that any div named "SearchResault" will save its toggled "checked" class according to the checked / unchecked state its checkbox
thanks!