Jump to content

Drop down menu


Html
 Share

Recommended Posts

Hi,

I have posted this example, so I want day, then month and year of birth. I've made a start there, so where do I go from here?

 

  <select>
    <option value="">1</option>
    <option value="">2</option>
    <option value="">3</option>
    <option value="">4</option>
    <option value="">5</option>
  </select>

 

Edited by Html
Link to comment
Share on other sites

You need three dropdowns

<select name="day">
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  ...
  <option value="31">31</option>
</select>

<select name="month">
  <option value="1">January</option>
  <option value="2">February</option>
  <option value="3">March</option>
  ...
  <option value="12">December</option>
</select>

<select name="year">
  <option value="1900">1900</option>
  <option value="1900">1901</option>
  <option value="1900">1901</option>
  ...
  <option value="2018">2018</option>
</select>

 

Link to comment
Share on other sites

  • 2 years later...

Hello,
You can use This For Providing Date Selection

<input  type="date">

 

Or You Can Also DO this:

<select name="month">
  <option value="Month" Selected></option>
  <option value="1" Selected>Jan</option>
  <option value="2">Feb</option>
  <option value="3">March</option>
  ...
  <option value="12">Dec</option>


</select>
<select name="day">
 <option value="Select" Selected></option> 
 <option value="1">1</option> 
 <option value="2">2</option>
 <option value="3">3</option> 
 <option value="4">4</option>
 ...
 <option value="31">31</option> 
</select>

<select name="year">
 <option value="Years"selected>Select Year</option>
 <option value="1900">1900</option>
 <option value="1900">1901</option>
 <option value="1900">1901</option>
 ...
 <option value="2019">2019</option>
 </select>

 

 

Edited by ishan_shah
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...