I have a table with cells. I want to click a cell only once in order to mark it. After I have marked it and saved it, I want to click a clear_Button that would unmark the cells and let me mark them again.
$("td").one('click', function (evt) {
$(this).css("border", "3px solid yellow");
});
$("#clear_Button").click(function () {
$("#table td").css("border", "1px solid black");
});
But since .one() function allows an object to be executed only once, I can not click the cell again. Is it possible to tell the jQuery to refresh .one() function? Thanks.