src/main/webapp/jquery-easyui-1.3.3/src/jquery.form.js
/**
         * check the checkbox and radio fields
         */
check the checkbox and radio fields
check the checkbox and radio fields
function _checkField(name, val) {
            var rr = $(target).find('input[name="' + name + '"][type=radio], input[name="' + name + '"][type=checkbox]');
            rr._propAttr('checked', false);
            rr.each(function () {
                var f = $(this);
                if (f.val() == String(val) || $.inArray(f.val(), val) >= 0) {
                    f._propAttr('checked', true);
                }
            });
            return rr;
        }
function _checkField ( name , val ) { var rr = $ ( target ) . find ( 'input[name="' + name + '"][type=radio], input[name="' + name + '"][type=checkbox]' ) ; rr . _propAttr ( 'checked' , false ) ; rr . each ( function ( ) { var f = $ ( this ) ; if ( f . val ( ) == String ( val ) || $ . inArray ( f . val ( ) , val ) >= 0 ) { f . _propAttr ( 'checked' , true ) ; } } ) ; return rr ; }
check the checkbox and radio fields
check the checkbox and radio fields