Current location - Loan Platform Complete Network - Big data management - jquery easyui how to dynamically change the style and text of the buttons of the toolbar on a datagrid table
jquery easyui how to dynamically change the style and text of the buttons of the toolbar on a datagrid table
This code has a syntax error at first glance, the selector should be followed by the plugin name.

You this problem I give you to analyze, datagrid's toolbar is essentially linkbutton, to disable or enable a linkbutton to call its disable or enable method, according to the needs of what you said above, click to modify the button to disable itself, enable the preservation of the code is as follows:

handler : function() {// Here's the modifier button right after yours

// Note that the ID is the one that corresponds to the toolbar button you initialized

$("#update").linkbutton("disable"); // Disable the modifier button

$("#save"). linkbutton("enable"); // enable save button

}