Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('#btn-tambah').click(function (e) {
- e.preventDefault();
- var kategori = $('#kategori').val();
- $.ajax({
- type: "post",
- url: "http://localhost/PBC/Kategori/create",
- data: {
- 'kategori': kategori
- },
- dataType: "json",
- success: function () {
- Swal.fire({
- title: 'Success!',
- text: 'Data Berhasil Ditambahkan',
- type: 'success'
- });
- }
- });
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement