Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use the Jquery from here Link [^]i tried all possible cases as per shown in the document for not popping-up the calendar on textbox but i could not stop it. So can any one help me on this to have a calendar pop-up only on clicking image available.
This is what i tried
JavaScript
<script type="text/javascript">
$(function() {
   $('#ctl00_ContentPlaceHolder1_TextBox2').datepick({
 showOn: 'button',
 buttonImage: 'calendar.gif',
 buttonImageOnly: true,
 changeMonth: true,
 changeYear: true,
 showAnim: 'slideDown',
 duration: 'fast'
});
});
</script>

What I want is to load calendar on image click and should not be focused when i have a cursor on Textbox
Posted
Updated 27-May-11 22:42pm
v3

1 solution

this to have a calendar pop-up only on clicking image available
Change this line: $('#ctl00_ContentPlaceHolder1_TextBox2').datepick({
to
$('#ctl00_ContentPlaceHolder1_MyCalendarImage').datepick({

All you need to do is to change/set the control needed. Try to understand how it works and it would be simple for you to make such changes.
 
Share this answer
 
Comments
demouser743 28-May-11 4:41am    
Then how can i have date in to my textbox
demouser743 28-May-11 4:43am    
Can you check out from the link i posted and give me appropriate solution
Sandeep Mewara 28-May-11 5:06am    
In Miscellaneous -> Linked to Inputs, take hints from it.
demouser743 28-May-11 5:10am    
That i got it but i would like to disable the popup on textbox focus see if u click the textbox the calendar is getting loaded

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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