I've written a simple jQuery (1.4.2) UI (1.8) widget that embeds a jQuery UI datepicker. I'd like to detect when a user clicks outside my widget, in which case it should automatically hide itself. My code looks roughly like this:
var self = this;
$(document).bind("click.mywidget": function(event) {
var target = event.target;
i...
Hello all,
Currently this code is working but not as expected:
$("#start_date").datepicker({
dateFormat: 'yy-mm-dd',
onSelect: function(_date, _datepicker)
{
var myDate = new Date(_date);
myDate.setDate(myDate.getDate()+8);
$('#estimated_hatching_date').text(myDate);
...
I must be missing some setting or something, but when I use the back button the datepicker jumps to 1899 from the current year.
Has anyone else seen this and fixed it?
(You can see the different combos I've commented out.)
$('.dialog-search,#from')
.datepicker({
defaultDate: 'c-1m',
dateFormat: 'yymmdd',
//changeM...
Hello All,
I am getting this strange bug. I'm using a jquery ui date picker in my Spring MVC application.
The controller is populating the form which are populating on the jsp.
<form:form modelAttribute="form8DContainment" method="post">
<form:input path="finalDate"/>
<form:input path="finalDate"/>
</form:form>
I have app...
I have a link to a page on my site that has a data parameter in it. I want to use jQuery UI's Datepicker to set the parameter for the link. I've used Datapicker before, but only in forms. Is there a way to use it to set a URL parameter in the link? Thanks for reading.
...
What is the best way to create a calendar with JavaScript like the jquery Datepicker where I can add some more functionality?
I want to display some arrays of dates in different colors in it as well as selecting a date.
Shall I try to edit the source code, or better, use some library and do it myself?
For the first case I would like t...
Been having a poke around and I am trying to be able to get the individual sections of the date chosen by the date picker as vars, so they can be used outside the .datepicker function.
Is there an array I can access to grab this data?
You can format the date as one of the functions options using dateFormat: "dd mm yy" etc, so there m...
I have a form with a datepicker. The datepicker has a user-facing d/m/Y formatted datepicker input and a hidden altField to go with it for use with the DB.
If the user clears the text in the input field it doesn't clear the altField as well.
I'm using the below JS to get around this problem. Is there a more correct way to do this or is...
Hi,
I'm playing around with the UI datepicker widget and I noticed that when the calender is generated, all the dates are inside an anchor tag with href="#". is it possible to change the href to the dateText, or whatever i set the dateFormat to?
ex: <a class="ui-state-default" href="#October-27-2010">27</a>
Thanks in advance
//update...
I'm working on a site that uses a Jquery UI datepicker to allow users to enter their date of birth. However, since the calender (intialized as follows), doesn't go before December 31st 1969, this will prevent users born before then from registering. How can I make it so that the date goes back all the way to 1910 like intended?
picker....
I want to display events in the jQuery UI Datepicker. I want the days that have events to be styled differently from days that don't have events, and I want to display a custom tooltip with the event details when hovering dates with events.
The solution to the question "jQuery UI Datepicker with jQuery tipsy" gets very close, but doesn'...
I have two inputs, and I have attached jQuery UI Datepickers to both of them. Problem is that when I change the date on the first one, it changes on the second one and vise-versa. Suggestions?
<label for="datestart">Start Date:</label>
<input id="datestart" name="datestart" type="text">
<label for="dateend">End Date:</label>
<input id=...
Is there a way we can show the calender for a particular year and month using datepicker configuration options? The API documentation doesn't list any such functionality. Still is there a way out?
...