Function:
function abc()
{
$('#table_id tr td').removeClass('highlight');
$(this).addClass('highlight');
tableText($table_label,$table_id);
}
abc();
function refresh()
{
abc().hide; // Need help at this.
}
<button class="refresh" onclick="refresh()">Refresh</button>
I'm trying to remove function/stop running abc() function, when refresh button was clicked.
abc()isn't a loop orinterval, so I don't think you are actually trying to stop running the function. It seems like you want to undo the changes made by the function. Is that correct?abc = function(){}when you dont need abc to be called. Technically abc will be called, but since it has empty definition, nothing will workabc(), or adjustabc()so that it undoes changes after they're not needed; or perhaps, depending on your app, it would be easiest to reload the content without runningabc()on it.