Generate Input Field Value From Select Date
<p>I have this code</p>

<p>this : <a href="http://jsfiddle.net/fauzi/ByTtp/" rel="nofollow">http://jsfiddle.net/fauzi/ByTtp/</a></p>

<p>So I want to generate the input field value birhtday option is selected. I make javascript, but confused generate month and year.</p>

<pre><code>$(document).ready(function() {

    $("#pelajar_tglahir_3i option").filter(function() {
        return $(this).val() == $("#pelajar_code").val();
    }).attr('selected', true);

    $("#pelajar_tglahir_3i").live("change", function() {
        $("#pelajar_code").val($(this).find("option:selected").attr("value"));
    });

}); 
</code></pre>

<p>Example When select birthday is <code>1 March 1990</code> and input field value is <code>1March1990</code>..</p>
