function toggleMassActionBtns(grid, datagridId)
{
    var status = grid.jqGrid('getGridParam','selarrrow').length ? false : true;
    var massAction = jQuery('#t_' + datagridId + ' .mass-action');
    massAction.attr('disabled', status);
    if(status || !massAction.val()){
        jQuery('#t_' + datagridId + ' .submit-action').attr('disabled', true);
    } else {
        jQuery('#t_' + datagridId + ' .submit-action').attr('disabled', false);
    }
}
/**
 * Toggle mass action buttons
 * 
 * @param grid
 * @param datagridId
 */
Toggle mass action buttons

@param grid
@param datagridId
Toggle mass action buttons @param grid @param datagridId
function toggleMassActionBtns(grid, datagridId)
{
    var status = grid.jqGrid('getGridParam','selarrrow').length ? false : true;
    var massAction = jQuery('#t_' + datagridId + ' .mass-action');
    massAction.attr('disabled', status);
    if(status || !massAction.val()){
        jQuery('#t_' + datagridId + ' .submit-action').attr('disabled', true);
    } else {
        jQuery('#t_' + datagridId + ' .submit-action').attr('disabled', false);
    }
}
function toggleMassActionBtns ( grid , datagridId ) { var status = grid . jqGrid ( 'getGridParam' , 'selarrrow' ) . length ? false : true ; var massAction = jQuery ( '#t_' + datagridId + ' .mass-action' ) ; massAction . attr ( 'disabled' , status ) ; if ( status || ! massAction . val ( ) ) { jQuery ( '#t_' + datagridId + ' .submit-action' ) . attr ( 'disabled' , true ) ; } else { jQuery ( '#t_' + datagridId + ' .submit-action' ) . attr ( 'disabled' , false ) ; } }
Toggle mass action buttons
Toggle mass action buttons