Java
asp:TextBox ID="TextBox2" runat="server">asp:TextBox> a class="click-on-link" href="#">show datepickera>My Jquery is as follows
Bash
script type="text/javascript"> function showDate(date) { //alert('The date chosen is ' + date); } $(function() { $('#ctl00_ContentPlaceHolder1_TextBox2').datepick(); // assign anonimous function as event handler and call showdate from it $('#clickOnIt').click( function() { showDate( $(this).val() ); } ); }); script>Can any one tell what to do


Posted May 27, 2011, 1:54 AM EDT
href="#" id="clickOnIt">show datepicker
$('#clickOnIt').click(function() {
//sow calerndar here
});
Hope this helps you.
Dorababu MekaRank #457 · 5.5K reputationPosted May 27, 2011, 2:05 AM EDT
Posted May 27, 2011, 4:05 AM EDT
Try this way,
Insteada of first try with button, if it works then there is a problem by using href....
If the button also not working then there is some other problem...
Dorababu MekaRank #457 · 5.5K reputationPosted May 27, 2011, 4:34 AM EDT
But on focus of Textbox1 the calendar is getting loaded i would like to stop that i am looking for that i used the script from here http://keith-wood.name/datepick.html
can you help me for what i am looking
Dorababu MekaRank #457 · 5.5K reputationPosted May 27, 2011, 4:37 AM EDT
http://hackingon.net/files/jquery_datepicker/open_on_image.htm
But if i download the scripts and try running this is not loading i would like to change the years starting from 1950 or so
Dorababu MekaRank #457 · 5.5K reputationPosted May 27, 2011, 4:43 AM EDT
instead of
Strange but i came to know this type of issues will come :)
Dorababu MekaRank #457 · 5.5K reputationPosted May 30, 2011, 12:14 AM EDT