hello guys i want a drop down menu for the month,year and days in case of DATE OF BIRTH.
I HAVE done this thing with jquery datepicker but i want a dropdown menu for it..please help me

here is my code i want to use drop down menu but figuring it out..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/stu.css" />
<style type="text/css">
.style1 {color: #C0C0C0}
<link href="../jquery-ui.css"rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../jquery.js"></script>
<script src="../jquery-ui.min.js"></script>

$(document).ready(function() {
$("#DateOfBirth").datepicker({dateFormat: 'yy-mm-dd '});


<form id="formID" class="formular" method="post" action="" style="width:600px">
  	<input type="text" name="DateOfBirth" id="DateOfBirth"  /> 



Edited by extemer: n/a

7 Years
Discussion Span
Last Post by stbuchok

is it only creating the dropdown how will be day, month, year will be shown in that dropdown menu...


For the years dropdown populate it with the years you want (maybe +-50 year of current date)
For the months dropdown, populate it with the numbers 1-12
For the days dropdown, populate it with the number of days in the month that is selected from the months dropdown.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.