Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- $(".simpan").click(function() {
- var data = $(".form-simpan").serialize("value");
- $.ajax({
- type: 'post',
- url: 'admin/simpan.php',
- data: {
- "simpan": data
- },
- success: function(s) {
- alert(data);
- if (s = true) {
- window.location.reload();
- }
- }
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement