This is my jquery datetimepicker i want to call this jquery in the image button which is placed nearby the textbox.how should do?
<script type="text/javascript">
$(function() {
$( "#<%= this.txtFrom.ClientID %>" ).datepicker({
showOn: 'both',
buttonImage: "Images/calendar.gif",
buttonImageOnly: true,
showmonth:true,
autoSize: true,
showAnim: 'slideDown',
duration: 'fast'
});
});
</script>
this is my textbox and imagebutton.
<asp:TextBox ID="txtFrom" MaxLength="10" runat="server" ToolTip="Enter From Date"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/clock_add.gif" />
when i click this image button that jquery should call.