Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

datepicker calendar onchange populating a select menu without screen refresh

Posted on 2013-05-26
2
Medium Priority
?
489 Views
Last Modified: 2013-05-27
user picks day in jquery datepicker and the day changes the number of options in a select menu

for example user selects day 7 of month

and dropdown select menu
1
2
3
4
5
6
7

if user selects 3
1
2
3
0
Comment
Question by:rgb192
2 Comments
 
LVL 11

Accepted Solution

by:
mcnute earned 2000 total points
ID: 39198679
Well I would start with an html structure and a working datepicker -> Then go to the jquer UI documentation and read about events of the datepicker -> then build your function which changes the amount of select options with a loop.

In the onchange function you'll need the day number returned by the datepicker and then make a for loop to generate your select options on it.

Links:
http://jqueryui.com/datepicker/
http://www.w3schools.com/js/js_loop_for.asp
0
 

Author Closing Comment

by:rgb192
ID: 39199257
thanks for forming my next question
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question