<form>
<input type="checkbox" id="m_q" name="m_q" value="271">Name</input><div name="status"></div>
<input type="checkbox" id="m_q" name="m_q" value="271">Age</input><div name="status"></div>
<input type="checkbox" id="m_q" name="m_q" value="271">ID</input><div name="status"></div>
<input type="checkbox" id="m_q" name="m_q" value="271">Emp no</input><div name="status"></div>
<input type="button" value="save" onclick="save" />
</form>
<script>
function save()
{
$.post("/det/save_details/",snddata,
function(data){
if(data == 0 ){
alert('data added');
//How to disable the checkbox field and in the div say data added
},"json");
}
</script>
In the above code after getting the response from the server onselect() ,how to say "data added" in the status div for selected checkbox only