Don't no why but the javascript code stop functioning when i use the getJSON. nothing happens. Please assist.
function check_order(){
var mob= $('#order-status-input').val();
if (/^[0-9]{1,10}$/.test(+mob) && mob.length==10){
document.getElementById('check_status_conf').style.display="block";
$.getJSON("status.php", {mobile:mob},function(data){
if(data['status']==1){
document.getElementById('check_status_conf').innerHTML=data['message'];
}
}
}
};
#check_status_conf {
display:none;
background:#FFFFFF;
width:300px;
float:right;
z-index:109;
position:fixed;
margin-left:71%;
border-radius:10px;
height:auto;
min-height:100px;
max-height:400px;
color:#666666;
overflow-y:scroll;
}
<span class="check_status_conf" id="check_status_conf"><br></span>