jQery Serialize Form Explicitly
In order to pass the HTML controls without using submit button.
HTML
<div class="col-md-12"><button type="button" id="reject" class="form-control btn-info " onclick="reject()" >Reject</button></div>
js
function reject() {
var fromdata=$('#detailform');
var data = $(fromdata).serialize();
$.post("./index.php?controller=project&action=reject", data, function (o) {
}
PHP get control values back
Comments
Post a Comment