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
Back To Top
Search