how to select default option in html drop down list?

I have a drop down for date,month and year. I am using JavaScript loops to generate the code. Is there a way I can set the default value (selected="selected") for current date, month and year? I can use JavaScript to fetch current date, month and year from client but how do I use this data to set default values for the drop down?
 
Back
Top