我有一个文本框和两个按钮。
button1
名称为prev
,button2
命名为next
.textbox
包含current date
.
If I click in next button the textbox will show the next date. If I click in prev button the textbox will show the previous date.
请帮我...
enter code here
<input type="text" id="txtDateFilter" readonly="readonly" runat="server" />
<div id="sfprevbtn" title="Prev" class="fbutton">
<span class="fprev"></span>
</div>
<div id="sfnextbtn" title="Next" class="fbutton">
<span class="fnext"></span>
</div>
<script type="text/javascript">
$('#sfprevbtn').click(function(e)
{
$('#txtDateFilter').val();
});
$('#sfnextbtn').click(function(e)
{
$('#txtDateFilter').val();
});
</script>