• λ我爱Aspx >> Asp.Net >> JavaScript仅英文字母下划线允许输入
  • JavaScript仅英文字母下划线允许输入

  • :未知  Դ:internet  :2007-5-20 16:39:44  ؼ:javascript
  • Custom : "this.Exec(value, getAttribute('regexp'))",

    Group : "this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",

    ErrorItem : [document.forms[0]],

    ErrorMessage : ["以下原因导致提交失败:\t\t\t\t"],

    Validate : function(theForm, mode){

    var obj = theForm || event.srcElement;

    var count = obj.elements.length;

    this.ErrorMessage.length = 1;

    this.ErrorItem.length = 1;

    this.ErrorItem[0] = obj;

    for(var i=0;i<count;i++){

    with(obj.elements[i]){

    var _dataType = getAttribute("dataType");

    if(typeof(_dataType) == "object" || typeof(this[_dataType]) == "undefined") continue;

    this.ClearState(obj.elements[i]);

    if(getAttribute("require") == "false" && value == "") continue;

    Ҷƪл˵?
  • һƪJavaScript禁止后退
    һƪJavaScript常用验证