function saveMe() {
var strValues = "";
var boxLength = document.choiceForm.choiceBox.length;
var count = 0;
if (boxLength != 0) {
for (i = 0; i < boxLength; i++) {
if (count == 0) {
strValues = document.choiceForm.choiceBox.options[i].value;
}
else {
strValues = strValues + "," + document.choiceForm.choiceBox.options[i].value;
}
count++;
}
}
if (strValues.length == 0) {
alert("You have not made any selections");
}
else {
$.post("rolGridPermition.php", {
rolId: strValues
});
}
}
在此代碼$ .post函數之間其他paranthesis不起作用...有什麼問題嗎?誰能幫我?
你試圖找到一個解決方案,或解決_why_它不工作?檢查你的瀏覽器的錯誤控制檯,並確保它發送到實際功能的PHP腳本。 – Bojangles 2012-03-17 22:10:37
加載資源失敗:服務器響應狀態爲404(Not Found) – 2012-03-17 22:12:00
這是問題所在?什麼意思...我是新的php&js – 2012-03-17 22:12:33