Posts

Showing posts with the label form

jQery Serialize Form Explicitly

Image
                                                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