Search and Top Navigation
#5665 closed bug (fixed)
Opened May 27, 2010 08:52PM UTC
Closed June 16, 2011 07:40AM UTC
Last modified February 11, 2013 01:28AM UTC
Datepicker: Disabled parameter doesn't work
Reported by: | fedehf | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8.15 |
Component: | ui.datepicker | Version: | 1.8.1 |
Keywords: | disabled datepicker | Cc: | |
Blocked by: | Blocking: |
Description
<html> <head> <title>Jquery datepicker</title> <script type="text/javascript" src="file://C://Users//federicof//Work//research//jquery//jquery-1.4.1.min.js"></script> <script type="text/javascript" src="file://C://Users//federicof//Work//research//jquery//jquery.ui.core.js"></script> <script type="text/javascript" src="file://C://Users//federicof//Work//research//jquery//jquery.ui.datepicker.js"></script> <link type="text/css" href="http://jqueryui.com/demos/demos.css" rel="stylesheet" /> <script type="text/javascript"> $(document).ready(function() { $("#datepicker").datepicker( { disabled : true } ); }); </script> </head> <body> <input id="datepicker" type="text"/> </body> </html>
The datepicker doesn't get disabled.
Attachments (0)
Change History (10)
Changed July 22, 2010 06:44AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
Changed July 23, 2010 03:31PM UTC by comment:2
milestone: | TBD → 1.9 |
---|---|
priority: | minor → major |
resolution: | wontfix |
status: | closed → reopened |
All plugins need to have a disabled option, setting it should have the same effect as calling the enable or disable method.
Changed August 15, 2010 10:40PM UTC by comment:3
I believe I have a patch for this. this is my first time contributing to jQuery-UI so please be liberal with feedback :) http://github.com/bcoe/jquery-ui/commit/c87588c6f6f8a9ead4235964c46d89041d874bcd
Changed May 13, 2011 11:51AM UTC by comment:4
It would be nice if at least the documentation was updated as I spent ages debugging through the jQuery UI code after following the documentation at: http://jqueryui.com/demos/datepicker/.
For what its worth you use 'enable' to re-enable the control.
Changed June 16, 2011 07:40AM UTC by comment:5
Changed July 19, 2011 12:10PM UTC by comment:6
Changed July 19, 2011 12:11PM UTC by comment:7
milestone: | 1.9 → 1.8.15 |
---|
Changed February 09, 2013 04:45AM UTC by comment:8
I've reached this closed ticket after trying:
$( ".selector" ).datepicker( "option", "disabled", true );
from the documentation, and finding it doesn't work. I'm using version 1.9.2, and have reverted to:
$( ".selector" ).datepicker("disable") and $( ".selector" ).datepicker("enable") instead, which work fine.
Is this a regression?
Changed February 09, 2013 10:30PM UTC by comment:9
Replying to [comment:8 mblaney]:
I've reached this closed ticket after trying: $( ".selector" ).datepicker( "option", "disabled", true ); from the documentation, and finding it doesn't work. I'm using version 1.9.2, and have reverted to: $( ".selector" ).datepicker("disable") and $( ".selector" ).datepicker("enable") instead, which work fine. Is this a regression?
Can you provide a reduced test case showing the problem. This appears to be working just fine to me http://jsfiddle.net/tj_vantoll/uTxrX/.
Changed February 11, 2013 01:28AM UTC by comment:10
Replying to [comment:9 tj.vantoll]:
Can you provide a reduced test case showing the problem. This appears to be working just fine to me http://jsfiddle.net/tj_vantoll/uTxrX/.
Thanks for your example, it shows the problem but only for the specific combination of jQuery and jQuery-UI that I'm using. Try it yourself by switching to jQuery 1.7.2 and jQuery-UI 1.8.18.
I'm stuck with jQuery 1.7.2 because I'm using slick grid, which still uses the deprecated $.browser.
I was using jQuery-UI 1.9.2 which exhibits the same problem as 1.8.18 above, but after upgrading to 1.10.0 the problem is fixed, even with jQuery 1.7.2. Interestingly jQuery-UI 1.9.2 doesn't have this problem when used with newser versions of jQuery.
thanks for your help,
Malcolm.
There is no such option. Use the disable command instead.