 <p>Don't bother with splicing the array, just create a new one:</p> <pre><code>var newArray = []; $('#clearChecked').click(function() { $('#keyWords &gt; input').each( function (n, obj) { if ($(obj).is(':checked')) { newArray.push($(obj).val()); } } }); localArray = newArray; </code></pre>