I would like to know how i can store the hide() method into a cookie and expires in a year
Hide is hiding my div tag I have with an tag onclick=”removeThis(this);”
<script type="text/javascript" >
function removeThissearch(field)
{
$(field).parent().hide();
}
</script>
You’ll want to store a value into a cookie rather than a whole method.
Then depending on the value of the cookie (or whether it simply exists) you’ll know whether to show the field or not by checking the cookie value when the page is loaded.