Solved

JQuery Calendar - won't disappear on onclick

Posted on 2011-03-09
2
442 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
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)

688 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