Sending select option with jquery to a php file...?
<p>I have looked for 2 days to find out how to send a variable with jquery to php. I have searched for over 100 posts on stackoverflow, i tried multiple examples. But i just get it done. So i really hope someone over here would be kind enough to help me find out what i am doing wrong....</p>

<pre><code>&lt;?php
print_r(json_decode($_POST['country']));
?&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;

        $(function() {
            $('#country').change(function() {

                var country = $('#country').val();

                $.ajax({
                    type: 'POST',
                    data: country,
                    dataType: 'json',
                    url: 'timezone/timezone.php',
                })

                alert("Country: " + country);

            });
        });

    &lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

    &lt;form method = "post" name="form1"&gt;
        &lt;select name="country" class="country" id="country"&gt;
            &lt;option value="NL"&gt;Nederland&lt;/option&gt;
            &lt;option value="BE"&gt;Belgie&lt;/option&gt;
        &lt;/select&gt;
    &lt;/form&gt;

&lt;/body&gt;

&lt;/html&gt;
</code></pre>
