how to send only selected chebox values to the next page using jquery

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-05-26T15:39:38Z Indexed on 2010/05/26 15:41 UTC
Read the original article Hit count: 172

Filed under:

Hello friends,

I am using this code to check wheather my checkbox is checked or not..

 $('#btnMassEdit').click(function() {
            $('#ExceptionDetails input[type=checkbox]').each(function() {
                if ($(this).attr('checked')) {
                    $('#specialist-tab').tabs('url', 3, '<%=Url.Action("getmasseditexceptions", "Expense", new { @GUI_SPEC_STAT_DSPL = GUI_SPEC_STAT_DSPL, @C_EXCPT_CATG = C_EXCPT_CATG, @C_EXCPT_TYPE = C_EXCPT_TYPE })%>').tabs('enable', 3).tabs('select', 3);
                    return false;
                } else {
                    alert("please select atleast one exception");

                    return false;
                }
            });
        });

I am getting the exceptions but i need only which ever is checkecd i need to send it next page.. but here its only checking for first exception and sending all the other exceptin even that is not checked..

thanks

© Stack Overflow or respective owner

Related posts about jQuery