function chk() {
var patrn = /^\d+(\.\d+)?$/;
var result = true;
$("input[type=text]").each(function () {
if (!patrn.exec(this.value)) {
alert("請輸入正確的數字!");
result = false;
}
})
return result;
}
