$.ajax({
type: 'post',
dataType: 'script',//'json',
cache: false,
url: <?php echo '"' . site_url('ajax_post/post_action') . '"'; ?>,
data: 'username=' + username + '&password=' + password,
success: function(data){
// alert(data.message);
// $("#form_message").css({"background-color": data.bg_color}).fadeIn('slow');
},
error: function(data) {
// alert('error');
// $("#form_message").html("An error occurred!");
}
});