Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var options = {
- target: '#result',
- url: 'content/mail.php?a=1',
- dataType: 'json',
- resetForm: 'true',
- beforeSubmit: showPreloader,
- success: function(j) {
- hidePreloader();
- if(j.status == 0) {
- $('#result').html(j.error);
- $('input[name='+j.field+']').addClass('error');
- }
- else if(j.status == 1) {
- $('input[type=text]').removeClass('error');
- $('#result').html(j.message);
- }
- }
- };
Add Comment
Please, Sign In to add comment