본문 바로가기
.NET/C#.NET

Checkbox in Repeater Control on tr click event

by 김뽀씨 2018. 3. 2.

$('#check_table tr').click(function (event) {
                    var checkbox = $(this).find('td:first-child :checkbox');
                    var result = "";
                    checkbox.attr('checked', !checkbox.is(':checked'));

                    $(checkbox).click(
                        //alert(checkbox.is(':checked'))
                        result = Order_Check(checkbox.is(':checked'))
                        );

                    if (result == "false") {
                        checkbox.attr('checked', !checkbox.is(':checked'));
                    }
                });