<script type="text/javascript" src="scripts/ui.datetimepicker.js"></script> $(function() { var txtbx = document.getElementById("<%=DVSurvey.ClientID%>").getElementsByTagName("input"); for(var i=0;i<txtbx.length;i++){ if(txtbx[i].id.indexOf("TBUpStime")!=-1 || txtbx[i].id.indexOf("TBUpEtime")!=-1){ $('#'+txtbx[i].id).datetimepicker({ changeMonth: true, changeYear: true, firstDay:1 }); } } $('#redit').corner(); $('#llist').corner(); });