Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

date month year dropdown html

<meta name="viewport" content="width=device-width, initial-scale=1.0" />


<select class="sl"onchange="function()">
<option selected disabled="">Year</option>
<option value="">1999</option>
<option value="">2000</option>
<option value="">2001</option>
<option value="">2002</option>
<option value="">2003</option>
<option value="">2004</option>
<option value="">2005</option>
<option value="">2006</option>
<option value="">2007</option>
<option value="">2008</option>
<option value="">2009</option>
<option value="">2010</option>
</select>




<select class="sl"onchange="function()">
<option selected disabled="">Month</option>
<option value="">January</option>
<option value="">February</option>
<option value="">March</option>
<option value="">April</option>
<option value="">May</option>
<option value="">June</option>
<option value="">July</option>
<option value="">August</option>
<option value="">September</option>
<option value="">October</option>
<option value="">November</option>
<option value="">December</option>
</select>



<select class="sl"onchange="function()">
<option selected disabled="">Day</option>
<option value="">1</option>
<option value="">2</option>
<option value="">3</option>
<option value="">4</option>
<option value="">5</option>
<option value="">6</option>
<option value="">7</option>
<option value="">8</option>
<option value="">9</option>
<option value="">10</option>
<option value="">11</option>
<option value="">12</option>
<option value="">13</option>
<option value="">14</option>
<option value="">15</option>
<option value="">16</option>
<option value="">17</option>
<option value="">18</option>
<option value="">19</option>
<option value="">20</option>
<option value="">21</option>
<option value="">22</option>
<option value="">23</option>
<option value="">24</option>
<option value="">25</option>
<option value="">26</option>
<option value="">27</option>
<option value="">28</option>
<option value="">29</option>
<option value="">30</option>
<option value="">31</option>
</select>


<!---add style-->
<style>

.sl{
  /background-color: black;/
  height: 40px;
  width: 120px;
  font-size: 20px;
  font-family: Arial;
/*  border-radius: 5px;
  border: 2px solid cyan;
  color: cyan;
  padding-left: 10px;*/
}
</style>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #date #month #year #dropdown #html
ADD COMMENT
Topic
Name
3+3 =