How do I remove value from POST if checkbox is unchecked
<p>jQuery</p>

<pre><code>$("input[type=checkbox]:checked").live("click", function (e) {
    var data = $('.variation:checked').map(function (i, n) {
        return {
            'val': $(n).val()
        };
    }).get(); 

    $.post('/variations.php', {
        'data': data
    }, function (data) {
        $('#variations').html(data);
    });

});
</code></pre>

<p>HTML output</p>

<pre><code>&lt;div id="variations"&gt;
Array
(
    [data] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [val] =&gt; 1
                )
       )
)
&lt;/div&gt;
</code></pre>

<p>PHP</p>

<pre><code>print_r($_POST)
</code></pre>

<p>Question: How do I remove value from POST if checkbox is unchecked?</p>
