hi, im having a problem using this jquery
I mamanged it to g and fetch data from mysql n now i want it to disply only one class at a time on available or not available
here is the js
$(document).ready(function(e) {
$('#txtAuction').keyup(function(){
check_availability();
});
});
function check_availability()
{
var new_Auction =$('#txtAuction').val();
$.post('checkAuction.php',{txtAuc:$('#txtAuction').val()},
function(result){
if(result==1)
{
$('h4.alert_success').css("display","block");
$('h4.alert_success').html(new_Auction + ' is Available');
//$('h4.alert_success').fadeOut(5000);
}
else
{
$('h4.alert_error').css("display","block");
} $('h4.alert_error').html(new_Auction + ' is not available');
}
);
}
it is working fine, exept that it shows me both the class.
please healp
thank you a lot
Ajay