Here's my button
<button id="Modify" role="button" class="btn btn-warning" disabled>Modify</button>
Here's my script for Modify button
$("#Modify").click(function(e) {
e.preventDefault();
var id = $('#cLoanOut2 tr.active').attr('id');
bootbox.confirm("Are you sure you want to modify this order?","No","Yes",function(r){
if(r) {
$.ajax({
url : "<?php echo $server_name; ?>/emcis_coopmain/process/PHP_groceryReleasingProcess.php",
type : "POST",
async : false,
data : {
empgrocmstID:id,
todo:"Modify"
},
success:function(result){
bootbox.alert('Order Modified',function(){
$("#Modify").attr("disabled", true);
});
loadTable();
}
});
} else {
}
});
});
And the td
in my php
$html .= "<td class='qty_ordered' style='text-align:right'>$qty_ordered</td>";
How can I edit the value on that td after I clicked the modify button?
Thanks for your help