hey, in controller @starttime = time_utc_to_local(@gmt_zone, @timenow_utc ) in rhtml i want this list also the id property, this generates the name property, not the id one, anyone know how i can get this. <%= select_year(@starttime, :discard_type=> true, :prefix =>"selectYear1" ,:start_year => 2005, :end_year => 2015) %> becomes <select name="selectYear1"> <option value="2005" selected="selected">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> </select> and now i need the ID for this javascript function updateSelect1(cal) { var date = cal.date; var selectMonth = document.getElementById("selectMonth1"); selectMonth.selectedIndex = date.getMonth(); var selectDay = document.getElementById("selectDay1"); selectDay.selectedIndex = (date.getDate() - 1); ==>>> var selectYear = document.getElementById("selectYear1"); selectYear.selectedIndex = (date.getFullYear() - 2000); }