function _checkField(name, val){
			var form = $(target);
			var rr = $('input[name="'+name+'"][type=radio], input[name="'+name+'"][type=checkbox]', form);
			$.fn.prop ? rr.prop('checked',false) : rr.attr('checked',false);
			rr.each(function(){
				var f = $(this);
				if (f.val() == String(val)){
					$.fn.prop ? f.prop('checked',true) : f.attr('checked',true);
				}
			});
			return rr;
		}
/**
		 * check the checkbox and radio fields
		 */
check the checkbox and radio fields
check the checkbox and radio fields
function _checkField(name, val){
			var form = $(target);
			var rr = $('input[name="'+name+'"][type=radio], input[name="'+name+'"][type=checkbox]', form);
			$.fn.prop ? rr.prop('checked',false) : rr.attr('checked',false);
			rr.each(function(){
				var f = $(this);
				if (f.val() == String(val)){
					$.fn.prop ? f.prop('checked',true) : f.attr('checked',true);
				}
			});
			return rr;
		}
function _checkField ( name , val ) { var form = $ ( target ) ; var rr = $ ( 'input[name="' + name + '"][type=radio], input[name="' + name + '"][type=checkbox]' , form ) ; $ . fn . prop ? rr . prop ( 'checked' , false ) : rr . attr ( 'checked' , false ) ; rr . each ( function ( ) { var f = $ ( this ) ; if ( f . val ( ) == String ( val ) ) { $ . fn . prop ? f . prop ( 'checked' , true ) : f . attr ( 'checked' , true ) ; } } ) ; return rr ; }
check the checkbox and radio fields
check the checkbox and radio fields