selecting multiple checkbox in jquery
<p>hey guys  i wrote a jquery code to send values to a php file </p>

<pre><code>$('#def_formSubmit').live("click",function(){

        var query_string = '';

                    $("input[@type='checkbox'][@name='assotop']").each(
                        function()
                        {
                            if(this.checked)
                            {
                                query_string += "&amp;assotop[]=" + this.value;
                            }
                        });


    var def_tags = $("#tags").val();

    var dataString = 'def_tags='+ def_tags + query_string  ;

    $.ajax({
        type: 'POST',
        url: 'post.php',
        data: dataString,
        cache: false,
        beforeSend: function() {
            $("#QRresult").html("&lt;img src='images/loading.gif' /&gt;");
        },
        success: function(data5) {
            $("#QRresult").html(data5);
        }
    });
    return false;
});
</code></pre>

<p>but its not working  and not sending checkbox values to my php file </p>

<p>i think this way of getting checkbox values is a old approach and not working for jquery 1.4</p>
