tamam arkadaşlar teşekkür ederim,
$(document).ready(function(){
$("#firmaadi").change(function() {
var usr = $("#firmaadi").val();
if(usr.length >= 10)
{
$("#status").html('<img src="loader.gif" align="absmiddle"> kontrol ediliyor...');
$.ajax({
type: "POST",
url: "sayfalar/firmakontrol.php",
data: "firmaadi="+ usr,
success: function(msg){
if(msg == 2)
{
$("#status").html('<font color="green" size="1" style="margin-left:5px;">firma kaydedilebilir.</font>');
}
else
{
$("#firmaadi").val('');
$("#status").html('<font color="red" size="1" style="margin-left:5px;">Firma Daha Önce Kaydedilmiş.</font>');
}
}
});
}
else
{
$("#status").html('<font color="red" style="margin-left:7px;">Firma Adı En Az <strong>10</strong> Karakter Olmalıdır.</font>');
}
});
});bu şekilde çözdüm