0

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">


<head>
<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}
-->
</style>
[B]
<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>


<script>
$(document).ready(function() {
$("#DateOfBirth").datepicker({dateFormat: 'yy-mm-dd '});
});
</script>[/B]
 


</head>


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


</form

</body>
</html>

Edited by extemer: n/a

2
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by stbuchok
0

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

0

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.