jqGrid如何实现单选。

 onCellSelect: function (id, status) {
                                var name = "jqg_grid-table_" + id;
                                $.each($("input[CHECKED='checked']"), function () {
                                    if (name != $(this).attr("name")) {
                                        $(this).attr("CHECKED", false);
                                        $(this).parent().parent().removeClass("ui-state-highlight");
                                    }
                                });
                            }

 

 

posted on 2013-08-02 08:42  hztyzq  阅读(692)  评论(0)    收藏  举报

导航