this.form.name 在 chrome 中不工作

this.form.name not working in chrome

请帮助我,this.form.name 和 this.form 没有在 chrome 的标签标签上给我当前的表单名称。虽然它在 mozilla 和 IE 中工作正常。

在输入标签 this.form.namethis.form 上工作。

<li>
    <input type="text" id="listCount" class="field" name="listCount" value="${rowsPerPage }" onblur="javascript:numberValidation(this.form.name,this.value,this.name);" onkeypress="javascript:validateEnterKeyOnRowCountField(event,this.form,this);">    
    <label style="cursor:pointer;" onclick="javascript:getList(this.form,20,1000);">Per Page</label> 
</li>
<li>
    <label style="cursor:pointer;"  onclick="javascript:getListWithoutCondition(this.form.name);">
    <i class="ico ico-large-zoom"></i>
    View All
    </label>  
</li>

请帮忙

提前致谢。

添加这两个Javascript函数

function getFormNameValue(elem) {
   var formName = j$(elem).closest('form').attr('name');
   return formName;
}
function getFormObject(elem) {   
   return j$(elem).closest('form').get(0);
}
<li>
  <input type="text" id="listCount" class="field" name="listCount" value="${rowsPerPage }" onblur="javascript:numberValidation(this.form.name,this.value,this.name);" onkeypress="javascript:validateEnterKeyOnRowCountField(event,this.form,this);">    
  <label style="cursor:pointer;" onclick="javascript:getList(getFormObject(this),20,1000);">Per Page</label> 
</li>
<li>
  <label style="cursor:pointer;" onclick="javascript:getListWithoutCondition(getFormNameValue(this));">
   <i class="ico ico-large-zoom"></i>
   View All
  </label>  
</li>

enter code here