What do you mean it isn't working -- are you saying when you click in the input box, the calendar widget doesn't pop up? If you use the browser developer tools to inspect the input widget in the DOM, does it look correct?
Anthony On Tuesday, July 28, 2015 at 6:30:35 PM UTC-4, Anandhakumar Radhakrishnan wrote: > > Hi, > > Am using the default web2py date function in my project. > > Which is I have add the 'date' as a class in my input filed. > > In my page i have an option called add more. this will add the another > input filed which contains the class as 'date' . > > But the new row is working the date. > > this date is working the first row which is default . > my code is hrere. > <html> > <script language="javascript"> > function addRow(tableID) { > > var table = document.getElementById(tableID); > > var rowCount = table.rows.length; > var row = table.insertRow(rowCount); > > var colCount = table.rows[0].cells.length; > > for(var i=0; i<colCount; i++) { > > var newcell = row.insertCell(i); > > newcell.innerHTML = table.rows[0].cells[i].innerHTML; > > } > } > </script> > <body> > <table id="dataTable"> > <td><input type="date" class="date invoice_date" name = "invoice_date" > value="{{=data['invoice_date']}}"></input></td> > </table> > <input type = "button" id = "add_more" name = "add_more" value = "Add One > More Report" onclick="addRow('dataTable')"/> > </body> > </html> > -- > Thanks, > Anand > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.