http://bassistance.de,迄今为止,正在做罚款,直到某些网页需要改变关于下降变化的错误信息,而不是提交纽扣。
我在错误信息部分的内容
信息:{
txtLocation: {
required: function(){
if($("select[name=selDelBasis] option:selected").text()=="C&F FIFO" || $("select[name=selDelBasis] option:selected").text()=="CIF FIFO")
return "Please enter the name of discharge port.";
else
return "Please enter the name of port from where you will load your coal.";
}},
In my html i have a select with name=selDelBasis and an input type text name="txtLocation"
To populate the problem here is the step.
1. Choose C&F FIFO from selDelBasis dropdown
2. Click Submit, without filling the txtLocation
3. Error message appear as "Please enter the name of discharge port."
4. Change selDelBasis from "C&F FIFO" to "FAS"
5. The error message no changes, still same "Please enter the name of discharge port."
我们需要的是第5步,错误信息应当改为“请从你装载你的煤炭的地方进入港口名称”。
增 编