<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>
在上面的代碼,怎麼說「數據增加了」在狀態DIV選定複選框僅Jquery的從服務器獲取ONSELECT()響應之後添加狀態爲repsonse
+1你對我沒有正確理解這個問題 – 2010-08-16 07:28:22
JsFiddle頁是有幫助的..謝謝 – Hulk 2010-08-16 08:53:59