skip to Main Content

Why my ajax post is not working codeigniter? The page is refreshing – Jquery ajax

// save new employee record $('#saveEmpForm').submit('click',function(){ var empInputId = $('#input_id').val(); var empJenis = $('#jenis').val(); var empJarak = $('#jarak').val(); $.ajax({ type : "POST", url : "InputPembangunan/save", dataType : "JSON", data : {input_id:empInputId, jenis:empJenis, jarak:empJarak }, success: function(data){ $('#jenis').val(""); $('#jarak').val(""); $('#addEmpModal').modal('hide'); alert('Successfully…

VIEW QUESTION

modal not working when use on click event – Jquery ajax

the button, use to click that pass direct to open in the modal <button type="button" class="btn btn-primary waves-effect waves-light debit-btn" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center-dr" data-account_id="" >Debit</button> modal section, after button clicked the modal suppose to open and show the data <div…

VIEW QUESTION
Back To Top
Search