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