jQuery plugin: Masked Input
http://digitalbush.com/projects/masked-input-plugin/
日期格式样例:
<script language="javascript" src="../public/jquery_lg/jquery.js"></script> <script language="javascript" src="../public/jquery_lg/jquery.maskedinput-1.2.2.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $("#date1").mask("9999/99/99"); }); </script>