jquery form ajax
<p>I have this form</p>

<pre><code>&lt;form name="send" id="myform&gt;
 &lt;input type="text" name="data"  id="input_field"&gt;
 &lt;input type="checkbox" value="true" id="my_check"&gt;
&lt;/form&gt;
</code></pre>

<p>I`m sending the information from this form via ajax:</p>

<pre><code>$(function() {
    $.post('url.php', {
        data : $('#input_field').val(),
        check : $('#my_check').val(),
        function() {}
});
</code></pre>

<p>The problem is that I can`t figure out how to send the form only with #input_field value if #my_check is not checked ? </p>
