I need to remove some Cookies in a jQuery click function.
In HTML:
<a href="" class="btn btn-danger" type="button" id="search-this-day">Search</a>
In jQuery:
$('#search-this-day').on('click', function () {
Cookie("fromDate",null,-1);
// or
deleteCookie("fromDate");
// or
$.cookies.del('fromDate');
});
But none have worked !
Where is my problem?