Just wondering if there are ways to simplify the following script…Thanks for the help.
$('#right-arrow').live('click', function(){
removt();
callAjaxToCheck();
show = true;
})
$('#tab').click(function(){
removeTut();
callAjaxToCheck();
show = true;
})
$('left-arrow').live('click', function(){
removeT();
callAjaxToCheck();
show = true;
})
Always include semicolons in your code. (You’re missing them after the
})lines).I think the cleanest way to do it is to make a separate function:
Of course, you should use a more descriptive function name than
doStuff.