override action in JavaScript / jquery
<p>In my requirement, a user can select multiple check-boxes.
however after checking each check-box i need to call the url and pass selected checkbox value with time-delay of 3 seconds.This delay is required , so that user can select/de-select another checkbox , old action should be canceled and new selected value(s) should be passed.</p>

<p>I know to call a function with delay , but dont know how to stop the last action with the new one.
Please help.</p>

<pre><code>setTimeout(function(){ call_me(action) },3000);
function call_me(action)
{
    var url = action
    $(location).attr('href',url);
}
</code></pre>
