Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type : "POST",
- cache : false,
- url : "{llink register}",
- data : $form.serializeArray(),
- dataType: 'json',
- success: function(data) {
- if (data.status) {
- $form.hide();
- $box.loader('hide');
- $messages
- .text(data.ok_text)
- .addClass('goodNews')
- .show();
- _gaq.push(['_trackEvent', 'Registration', 'OK', 'Registration was successful']);
- } else {
- $messages
- .text(data.errors[0])
- .attr('class', 'badNews')
- .show();
- }
- }
- });
- return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement