I am trying to convert my application from 3.1 to 4.2 and can't seem to figure out what needs to be modified in place of the 'applyto'. I have tried variations of renderto and contentel but can't seem to figure it out. With 4.2 nothing seems to happen. No errors in firebug...
Ext 3.1 code that works-
Javascript file -
Code:
 cust_datepicker=function(){
 var els=Ext.select("input.date-picker",true);
 els.each(function(el)
  {
   new Ext.form.DateField(
   {applyto: el.id
   ,format: 'Y-m-d'
   ,altFormats: 'j|j/n|j/n/y|j/n/Y|j-M|j-M-y|j-M-Y'
   ,editable: false
   ,id : el.id
   }
  );
 }
)};
Ext.onReady(function(){
  cust_datepicker();
});
HTML Code:
<form action="xxx/xxx.cgi" method="GET">
<table><tr>
<td><input name="startdate" class="date-picker"/></td>
</tr></table>
</form>