Solved

datepicker calendar onchange populating a select menu without screen refresh

Posted on 2013-05-26
2
460 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 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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…

832 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