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

Popular posts from this blog

ENOENT: no such file or directory, rename : node_modules/async

react-quill Integrate quill-image-resize-module