javascript 获取 sx:datetimepicker 的值


  1. <div align="center"><sx:datetimepicker label="Start_Time" id="Start_Time" name="Start_Time1" displayFormat="yyyy/MM/dd" /></div>
  2. <div align="center"><sx:datetimepicker label="End_Time" name="End_Time" displayFormat="yyyy/MM/dd"/></div>
  3. <input id="test" type="text" >
  4. <script language="Javascript">
  5.   function myFunction(){
  6.     alert("begin");
  7.     var testdate= dojo.widget.byId("Start_Time");
  8.     alert(testdate.getValue());
  9.     return false;
  10. }
  11. </script>
  12. <s:submit value="Add" onclick="return myFunction();"/>
  13. </div>

转载地址:http://blog.sina.com.cn/s/blog_6e6bbaf20100y5hl.html

posted on 2016-03-13 11:14  菜鸟Z  阅读(581)  评论(0编辑  收藏  举报

导航