Solved

JQuery Calendar - won't disappear on onclick

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
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…

744 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