Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
3.20/5 (2 votes)
See more:
I am new to mvc,razor html , problem is, i have used datepicker(jquery) image button my page for datatime text box, but in the view the image button is lightly located upper form the textbox , so any one can give me a code for that ...

code is below
textbox
-------

@Html.EditorFor(Function(model) model.txtFrmDate, New With {.Class = "textinput"})

imagebutton jquery
------------------
XML
<script type="text/javascript">
        $(function () {
            $("#txtFrmDate").datepicker({
                showOn: "button",
                buttonImage: "../../images/Calender.png",
                buttonImageOnly: true,
                changeMonth: true,
                changeYear: true,
                dateFormat: 'dd-M-yy'
            }
             );
        });
    </script>




thanks in advance

Velsamy A
Posted
Updated 31-Mar-14 23:46pm
v8
Comments
Chamadness 1-Apr-14 1:40am    
some code fragment would be very helpful
avelsamy 2-Apr-14 6:28am    
<tr> <td width="50%"> <span style="float: left; padding-top: 8px; padding-right: 10px;">From date</span> @Html.TextBox("txtFrmDate", Nothing, New With {.Class = "textinput"}) </td> <td width="50%" style=""> <span style="float: left; padding-top: 8px; padding-right: 10px;">To date</span> @Html.TextBox("txtToDate", Nothing, New With {.Class = "textinput"}) </td> </tr>
Sunasara Imdadhusen 1-Apr-14 4:57am    
Yes, Need code snippet for better understanding!
avelsamy 2-Apr-14 6:27am    
<tr>
<td width="50%">
<span style="float: left; padding-top: 8px; padding-right: 10px;">From date</span>
@Html.TextBox("txtFrmDate", Nothing, New With {.Class = "textinput"})
</td>
<td width="50%" style="">
<span style="float: left; padding-top: 8px; padding-right: 10px;">To date</span>
@Html.TextBox("txtToDate", Nothing, New With {.Class = "textinput"})
</td>
</tr>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900