PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > CMS教程 > 齐博cms教程 > 正文

    齐博cms评论表单中怎么限制用户填的最小字符数

    作者:w634381967来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:齐博cms评论表单中怎么限制用户填的最小字符数方法分享,记得收藏呀。
    template\default\bencandy_tpl\comment.htm
    修改这个文件


    function post_comment(cid){
    var str="";
    if(cid!=undefined){ //引用回复
      str="_"+cid;
    }
    在这段代码下加上
    if(document.getElementById("comment_content"+str).value.length < '100'){
      alert('字符数不能少于100!');
      return false;
    }
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-107-1214-1.html
    相关热词搜索: