忘了说第一个表格中日期的格式是(%d / %m / %Y)

解决方案 »

  1.   

    第二个field取第一个field值的子串
      

  2.   

    能给个例子吗? 
    怎么样检测第一个field有值被输入?
      

  3.   

    用onpropertychange事件<td> <input   type= 'text'   name= 'returnBookshop'   id='returnBookshop_date'   size= '15' onpropertychange="document.getElementById('year1').value=this.value"  maxlength='30'> </td> 
    <td> <input   type= 'text'   name= 'year'   id= 'year1'   size= '15'  maxlength='30'> </td> 
      

  4.   


     <input   type= 'text'   name= 'returnBookshop'   id='returnBookshop_date'   size= '15' onpropertychange="document.getElementById('year1').value=this.value" maxlength='30'> 
     <input   type= 'text'   name= 'year'   id= 'year1'   size= '15'  maxlength='30'> 
      

  5.   

    恩,后面再用string.slice(start, end)得到字符串的子集.
    很好用,,谢谢帮助~~