Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#add-asset-form').submit(function(){
- //if (validate_asset_form()) {
- $.ajax({
- type: 'POST',
- url: 'wp-content/themes/tvmarketing/assetform/ajax-req.php',
- cache: false,
- data: $('#add-asset-form').serialize(),
- error: function(){ alert('error'); },
- success: function(data){
- alert('sucessful');
- $("#ajax-res").html(data);
- $('#edit-id').val('');
- $('#add-asset-form')[0].reset();
- }
- });
- //}
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement