Skip to content

Complicated - how I can hide timepicker at the bottom? #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
halexic opened this issue Apr 14, 2011 · 4 comments
Open

Complicated - how I can hide timepicker at the bottom? #133

halexic opened this issue Apr 14, 2011 · 4 comments

Comments

@halexic
Copy link

halexic commented Apr 14, 2011

I would like to define my datetimepicker like this:

$('#CalendarFromDate').datetimepicker({
dateFormat: 'dd.mm.yy',
showTimepicker: false
});

But it is not working...

@voda
Copy link
Contributor

voda commented Apr 14, 2011

Why don't you use $('#CalendarFromDate').datepicker({ dateFormat: 'dd.mm.yy'});

@halexic
Copy link
Author

halexic commented Apr 14, 2011

Thank you very much for this cool initialization.
Question: I have two textboxes ("From date" and "Until date") and two radio buttons above.
When I click on first radio button I want to have datepicker and when I click second I want to have datetimepicker.

I done this, no error but it is always the same (datepicker).
It is remembered the choice (first constructor = datepicker).
So I need to refresh it somehow... Possible?

@halexic halexic closed this as completed Apr 14, 2011
@halexic halexic reopened this Apr 14, 2011
@sickhippie
Copy link

What if you tied the initialization of the datepicker/datetimepicker to the clicking of the radio buttons?

$('input[name=radioGroupName]').click(function(){
     if ($('input[name=radioGroupName:checked').val() == 1){
          $('.textBoxes').datepicker();
     };
     else {
          $('.textBoxes').datetimepicker();
     };
});

@lfoust
Copy link

lfoust commented Aug 23, 2011

Re-initializing the textbox to a datepicker and then back to a datetimepicker doesn't seem to work. It just stays as whatever you initially set it as.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants