Enam Ajmal Enam Ajmal - 6 months ago 17
Javascript Question

missing parenthesis after argument in Ajax

I am trying to write live search program but it is not working here is my script.

function Selectcountry(value)
{
$.post("getRecord.php",{partialstate: value},function(data)
$("#RecordResult").html(data);
});
}


here is the error
missing ) after argument list

Answer

Missing braces in the success function of post request

       function Selectcountry(value) { 
    $.post("getRecord.php",{partialstate:value},function(data){
         $("#RecordResult").html(data); 
        });
}
Comments