jQuery: checkbox
<p>what's wrong with my code, I don't get any values:</p>

<pre><code>&lt;script&gt;
    $(document).ready(function()
    {
        $("input[type=checkbox][checked]").each(function(event){
            var get = $("input[@name=\'checkbox_pref\']:checked").val();
            $("#result").html("&amp;id=" + get);
        });
    });
&lt;/script&gt;
&lt;/head&gt;                                                                 
&lt;body&gt;                                                                
&lt;input type="checkbox" name="checkbox_pref" value = "1"/&gt;
&lt;input type="checkbox" name="checkbox_pref" value = "2"/&gt;   
&lt;input type="checkbox" name="checkbox_pref" value = "3"/&gt;   
&lt;div id="result"&gt;result ...&lt;/div&gt;
</code></pre>
