Skip to content
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

accessing the hidden date #6

Open
lookfirst opened this issue Nov 28, 2011 · 4 comments
Open

accessing the hidden date #6

lookfirst opened this issue Nov 28, 2011 · 4 comments

Comments

@lookfirst
Copy link
Contributor

I just realized that it would be really awesome if I could more easily access the hidden date from within the birthdaypicker instance itself instead of having to select the data from the hidden input field.

bdaypicker = $('foo').birthdaypicker(options)

Date date = bdapypicker.getDate()

and/or:

date = bdapypicker.getDateString()
date is then in: 'yyyy-mm-dd' format (or whatever the date format is from the options)

@lookfirst
Copy link
Contributor Author

Looking at the code a bit further, I see that you've done this.each(), which returns a Jquery object, so the above syntax might be a bit more difficult. I kind of question the validity of using this.each() because that would simply bind a bunch of pickers to a bunch of DOM objects, but with all the same settings... so how would the fiendName/fieldId work in that case?

@lookfirst
Copy link
Contributor Author

Ok, looking at the design of timepicker (http://fgelinas.com/code/timepicker) and datepicker (part of jquery ui), I wonder if birthdaypicker wouldn't benefit from a similar treatment.

@abecoffman
Copy link
Owner

You are welcome to update the code if you're interested. I just don't have much time these days.

@abecoffman
Copy link
Owner

I added you as a collaborator on this project. Will that allow you to merge your code in yourself?

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

2 participants