Solved

JQuery Calendar - won't disappear on onclick

Posted on 2011-03-09
2
438 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

813 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

11 Experts available now in Live!

Get 1:1 Help Now