Solved

datepicker calendar onchange populating a select menu without screen refresh

Posted on 2013-05-26
2
451 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
Comment Utility
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
Comment Utility
thanks for forming my next question
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
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…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now