Prasad Bhagat

Prasad Bhagat

  • NA
  • 516
  • 236.6k

how to select current date when it was hotcoded in jquery?

May 9 2016 10:31 AM
Dear all,
 
please find the my html code
 
 
<select id="ddlDate" class="form-control border_none" style="width: 70px;">
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select id="ddlMonth" class="form-control border_none" style="margin-left: 10px;
width: 75px;">
<option value="01">Jan</option>
<option value="02">Feb</option>
<option value="03">Mar</option>
<option value="04">Apr</option>
<option value="05">May</option>
<option value="06">Jun</option>
<option value="07">Jul</option>
<option value="08">Aug</option>
<option value="09">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>
<select id="ddlYear" class="form-control border_none" style="margin-left: 10px; width: 80px;">
<option value="2016">2016</option>
</select>
 
 
 
 
now i want to select current date when the page was loading .like in document.ready function in jquery .so .i want disply like 09/may/2016 ..how can i do this? 

Answers (1)