<%
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, -1);
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
String newTime = sf.format(cal.getTime());
%>
<form id="taizhytk" name="taizhytk" method="post" class="checkout" action="">
<div>
<table>
<tr>
<td>
查询时间:
<input id="begintime" name="begintime" type="text" onclick="WebCalendar.start(this, 'yyyy-MM-dd')"
value="<%=newTime %>" maxlength="20" style="width:80px" readonly/>
<input type="button" name="to_select" id="to_select" value="查 询"/>
</td>
</tr>
</table>
</div>
<div>
<tr>
<th nowrap="nowrap" colspan="7" width="90%" background="<c:url value="/images/head.gif"/>">
<font color="bule" style="font-size: 13pt" >日期
</font></th>
</tr>
</div>
<form>我想在红色的日期处显示上面bdgintime的值.怎么处理呢,
解决方案 »
- ExtJS获取后台数据问题,麻烦帮看看!
- 求助!我在框架里怎么找到另外的框架的frame,大家帮我看看!!急等,在线!
- Javascrip 脚本 在IE运行的问题
- xml.documentElement在Firefox下也兼容吗?
- 各位快来帮我一下。
- 关于和 ActiveX控件交互的问题
- 菜鸟关于数组的问题,请大虾务必回答,在线等!
- 如何做到获得表格的位置
- 父窗口用iframe嵌套一个子窗口,父窗口和子窗口的服务器地址各不相同,子窗口怎么得到父窗口的url地址,求详细
- 求帮忙。。。写个代码 绕过网页灰色按钮。使其可以点击跳转---------------
- XMLHttpRequest 不能访问静态文件么??
- 能提供像EXCEL那样冻结行列的代码,从事数据处理的人向你致敬!
在<input type="button" name="to_select" id="to_select" value="查 询"/>标签里加入onclick事件,
<input type="button" name="to_select" id="to_select" value="查 询" onclikc="function(){document.getElementByTagName('font').get(0).innerHtml=''+document.getElementById('begintime').value+''}"/>
function setDateValue(){
var dateHtml = ''+ document.getElementById('begintime').value+'';
document.getElementByTagName('font').get(0).innerHtml = dateHtml;
}
<input type="button" name="to_select" id="to_select" value="查 询" onclick="setDateValue();" />
抱歉,,刚才发的出了点问题