Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $("#login").click(function() {
- var action = $("#loginform").attr('action');
- var form_data = {
- username: $("#username").val(),
- password: $("#password").val(),
- is_ajax: 1
- };
- $.ajax({
- type: "POST",
- url: action,
- data: form_data,
- success: function(response)
- {
- if(response == 'success')
- $("#message").html("<div class=\"alert alert-success\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"icon-remove\"></i></button>Er is iets fout gegaan</div>");
- else
- $("#message").html("<div class=\"alert alert-error\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"icon-remove\"></i></button>Er is iets fout gegaan</div>");
- }
- });
- return false;
- });
- });
Add Comment
Please, Sign In to add comment