页面小技巧总结20110124

14年前
<div style="width:500; overFlow-x:scroll;overFlow-y: hidden;">
 <html:text
    property="toPrice" style="ime-mode: disabled"
    onchange="if(!/^[.0-9]+$/g.test(this.value)){if(this.value!='')alert('请使用数字');this.value='';}"></html:text>
 
<html:select property="is_invalid" name="poIsInvildForm">
     <option value="">--Please Select--</option>
     <option value="Y"
      <c:if test="${poIsInvildForm.is_invalid eq 'Y'}">selected="selected"</c:if>>Y</option>
     <option value="N"
      <c:if test="${poIsInvildForm.is_invalid eq 'N'}">selected="selected"</c:if>>N</option>
    </html:select>