Solved

JQuery Calendar - won't disappear on onclick

Posted on 2011-03-09
2
436 Views
Last Modified: 2012-05-11
Hi  I've had so many problems getting a JQuery calendar to work on a page with Lightbox and with the right formatting.  I think it's since I added the formatting, the calendar doesn't disappear when I click on a date (I have to click outside the page first).  I am a come JQuery newbie and don't know how to resolve the clicking problem - could someone please let me know what the JQuery syntax would be to do this?
The site is at:
http://countyhotel-dalkeith.co.uk.uksite4.yourwebservers.com/index.php/Restaurant#
0
Comment
Question by:Lorna70
2 Comments
 
LVL 4

Accepted Solution

by:
WhiteSeed earned 250 total points
ID: 35082852
try with this:

$('#Date').datepicker({
			onSelect: function(dateText, inst) {
				var s = dateText.split("/");
				$("#$DAY$").val(s[2]);
				$("#$MONTH$").val(s[1]);
				$("#$YEAR$").val(s[0]);
                                                                                //code for hide
			}
		}); 

Open in new window

0
 

Author Comment

by:Lorna70
ID: 35094847
Yes it must have been an error in my syntax as I changed something and it worked :-).
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now