开发者

please help me figure out what's wrong in my code

I faced a problem like; I placed a text box beside the calender but when I select the date from the calender it is not showing up in the test box .. Can anyone please help me out from this problem .. I need something like; when I select the date, month or an year in the calender beside it will show in the text box beside it ..

UPDATE:

Copied from the OP's comment:

<script language="javascript" src="includes/cal2.js"></script> 
<script language="javascript" src="includes/cal_conf2.js"></script> 

<tr>
    <td align="center" valign="middle">
    <input type="text" name="firstinput" size=20> 
    <a href="javascript:showCal('Calendar1')">Select Date</a&g开发者_运维问答t;  
</tr>  
<tr>  
    <td class="heading2">&nbsp;</td>  
    <td align="center" valign="middle"></td>  
    <td align="center" valign="middle">&nbsp;</td>  
    <td align="center" valign="middle" colspan="2">
    <label></label>


If there is only one thing you can do, you could always check out the jQuery website: http://jqueryui.com/demos/datepicker/


Something like this?

$('#DateControl').datepicker({
   onSelect: function(dateText, inst) { $("#TextBoxControl").val(dateText); }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜