i want to change the font color of html(username + ' is already exist. Please try another one');
but i don't know how to change this.
function check_availability(){
//get the username
var username = $('#username').val();
//use ajax to run the check
$.post("<?php echo base_url();?>loginFunction/checkUsername", { username: username },
function(result){
//if the result is 1
if(result == 1){
//show that the username is available
$('#username_availability_result').html(username + ' is Available');
}else{
//show that the username is NOT available
$('#username_availability_result').html(username + ' is already exist. Please try another one');
}
});