Solved

datepicker calendar onchange populating a select menu without screen refresh

Posted on 2013-05-26
2
472 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why is initialize not a function? 8 71
Review of the nodejs code 1 59
jQuery Datatables.js Selecting a Row to get ID 5 41
Check for Numeric Phone Field 14 48
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
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)

738 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