I am currently using jquery ui datepicker for forms that have date inputs. The problem is on my current form I need the user to just select a month. How would I got about doing this using jquery ui date picker?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could take advantage of the configurability of jQuery UI’s datepicker and use some CSS and JavaScript to achieve the behavior you’ve described. The following solution uses CSS to hide the calendar portion of the datepicker and some JavaScript to handle the month and year selection:
Working Demo
http://jsbin.com/uzafo (editable via http://jsbin.com/uzafo/edit)
Full Source
monthAndYear.css
monthAndYear.js
main.js
main.html