日期控件jsp里好用。在js里写的不好用。跪求解决办法。大神们!!!
我先说下问题:
在jsp里引用了一个js
<script type="text/javascript" charset="utf-8" src="<%=request.getContextPath()%>/console/common/My97DatePicker/WdatePicker.js"></script>(日期控件的js)
jsp里面有一个text框
<input type="text" id="in_real_date" name="in_real_date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
在同一个jsp里引用了另一个js文件。在这个js文件里面写了一段html代码:
var load = "Loading";
var seeHtml = "<form id='ReQ'><table width='100%' height='95%' border='0' cellpadding='0' cellspacing='0'>";
seeHtml += "<tr><td width='117'> 大区:</td> <td width='138'>[regionName]</td>";
seeHtml += "<td width='107'>经营体:</td><td width='150'>[jytName]</td>";
seeHtml += "<td width='110'>问题类别:</td><td width='157'>[typeName]</td></tr>";
seeHtml += "<tr><td> 涉及BU/FU部门:</td><td>[divisionName]</td>";
seeHtml += "<td>BU/FU部门长:</td><td>[managerName]</td>";
seeHtml += "<td>690海外接口人:</td><td>[prodevmanagerName]</td></tr>";
seeHtml += "<tr><td> 协调项目:</td><td>[project]</td>";
seeHtml += "<td>责任人:</td><td>[queManager]<input type='hidden' name='code' value='[queCode]'></td>";
seeHtml += "<td>所属部门:</td><td>[queDepartment]</td></tr>";
seeHtml += "<tr><td colspan='2'> 问题描述及进度要求</td>";
seeHtml += "<td colspan='2'>责任人邮箱</td><td colspan='2' nowrap='nowrap'>目前协调结果及所需支持</td></tr>";
seeHtml += "<tr><td height='89' style='padding-right:10px' colspan='2'>";
seeHtml += " <textarea disabled='disabled' rows='5' cols='24'>[queDesc]</textarea></td>";
seeHtml += "<td colspan='2'><textarea disabled='disabled' rows='5' cols='24'>[queManagerEmails]</textarea></td>";
seeHtml += "<td colspan='2' style='padding-right:10px'>";
seeHtml += "<textarea disabled='disabled' rows='5' cols='24'>[queCurRlt]</textarea></td></tr>";
seeHtml += "<tr><td colspan='2'> 备注</td><td colspan='2'>解决结果</td><td>期望时间:</td><td>[queCloseDate]</td></tr>";
seeHtml += "<tr><td colspan='2' height='89'> <textarea disabled='disabled' rows='5' cols='24'>[queCloseDesc]</textarea></td>";
seeHtml += "<td colspan='2'><textarea name='resolve_rlt' rows='5' cols='24'>[queResloveRlt]</textarea></td>";
seeHtml += "<td valign='top' align='left' colspan='2'> <select id='approve_s'> <option value='1'>满意</option><option value='2'>一般</option><option value='3'>不满意</option> </select> 亲~~请评价</br>";
seeHtml += "<textarea name='reason