=。=#
php是不能在客户端运行的吧。。

解决方案 »

  1.   

    在onsubmit的时候可以str.replace(/,/i, "");
    可以去掉,
      

  2.   


    这是在服务器端,提交所在文件后缀是php。
    那就是说不能用php解决?我的意思就在字段里加函数不行是吗?
      

  3.   

    <?php
    $ecmsfirstpost = 1;
    $r[price] = "hello,world";
    ?>
    <input name="price" type="text" id="price" onkeyup="chkDiv(this)" onblur="chkDiv(this)" size="10" maxlength="10" value="<?=$ecmsfirstpost==1?str_replace(',',"",$r[price]):DoReqValue($tbname,'price',stripSlashes($r[price]))?>">可以啊,程序通过