Jquery Toggle two function not work in jquery 1.10.1 but work\'s on Jquery 1.8.3
HTML
For example, consider the HTML:
toggle is not working for me in jquery so with the help of stackoverflow my alternative is
and here is implementation or you can say alternative of toggle function$('#thiclik').click(function()
{
//toggle alternative
function handler1() {
//alert("first handler for .toggle() called.");
$("#clickevent").text("Yes");
$('#thiclik').one("click", handler2);
}
function handler2() {
// alert("second handler for .toggle() called.");
$("#clickevent").text("No");
$('#thiclik').one("click", handler1);
}
$("#thiclik").one("click", handler1);
});