ajax ek cevap almak nasıl?

0 Cevap php

Hi I am using ajax to showing the error message ...I am getting the values in success: function(msgqq) Bu benim ajax olduğunu if want to get another response then how to get ex: I want

success: function(msgqq)

ve

success: function(msg)

Bu benim ajax olduğunu

function UserNameAvailablity(inp)
{

$.ajax({
   type: "GET",
   url: "<?=base_url()?>/system/application/views/ssitAjax.php",
    cache: false,
   data: "txtUserName="+inp,
   success: function(msgqq){
    document.getElementById('showErrmessage').innerHTML=msgqq;
      $("#showErrmessage").html(msgqq);
       if(txtUserName.value =="")
       {
         document.getElementById('txtUserName').focus();
         document.getElementById('txtUserName').value="";
       }

   }
 });
}

0 Cevap