Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- $().ajaxStart(function() {
- $('#loading').show();
- $('#result').hide();
- }).ajaxStop(function() {
- $('#loading').hide();
- $('#result').fadeIn('slow');
- });
- $('#myform').submit(function() {
- $.ajax({
- url: "../wp-content/plugins/rsvp/ceknama.php",
- global: false,
- type: 'POST',
- data: ({id : this.getAttribute('undangan')}),
- datatype: "html",
- async:false,
- success: function(data) {
- $('#result').html(data);
- }
- })
- return false;
- });
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement