Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function(){
- $("#fItem").submit(function() {
- dataString = $("#fItem").serialize();
- $.ajax({
- type: "POST",
- url: "<?php echo site_url(); ?>" + "apotek/purchasing/savedataitem",
- dataType: 'json',
- data: {
- csrf_test_name : csrf_value,
- no_purchase : no_purchase,
- code : obat_code,
- name : obat_name
- },
- success: function(data) {
- alert('Successful!');
- }
- });
- return false;
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement