markcell / jquery-tabledit

Inline editor for HTML tables compatible with Bootstrap.
http://markcell.github.io/jquery-tabledit/
MIT License
435 stars 208 forks source link

Disable Edit button in Tabledit JQuery #128

Open Sade7w opened 4 years ago

Sade7w commented 4 years ago

Good day

Can someone help me i want to disable the edit Button on my table if a row contains the word "Yes"

$(document).ready(function(){
$('#editable_table').Tabledit({ url:'action.php', columns:{ identifier:[0, "id"], editable:[[14, 'Eagles_Pride_amount'], [15, 'Eagles_Pride_Set_amount'],[16, 'Eagles_Pride_Confirm', '{"Not Set": "Not Set", "Yes": "Yes", "No": "No"}'], [17, 'Opti_Chicks_amount'], [18, 'Opti_Chicks_Set_amount'], [19, 'Opti_Chicks_Confirm', '{"Not Set": "Not Set", "Yes": "Yes", "No": "No"}'], [20, 'Groot_vlei_amount'], [21, 'Groot_vlei_Set_amount'], [22, 'Groot_vlei_Confirm', '{"Not Set": "Not Set", "Yes": "Yes", "No": "No"}'], [23, 'National_Chicks_amount'], [24, 'National_Chicks_Set_amount'], [25, 'National_Chicks_Confirm', '{"Not Set": "Not Set", "Yes": "Yes", "No": "No"}']] }, HideIndentifier:true, restoreButton:false, onSuccess:function(data, textStatus, jqXHR) {

  }
 });
Sade7w commented 4 years ago

Edit