Solved

JQuery Calendar - won't disappear on onclick

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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…
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)

734 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