engineer9090909090909090 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Using .live() instead of .bind() to set the elements to use the datePicker #240

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Imagine a situation:

1. Table with some rows and on one of the columns there is an input with 
class="datePicker"
2. We set the datePicker like this:

$("tr .datePicker").datePicker();

3. When you add a row to the table by javascript, the datePicker won't run on 
the new row unless it is binded again. If the handler was set by .live() 
instead of .bind() this would work well.

Thanks.

Original issue reported on code.google.com by vojtech%...@gtempaccount.com on 28 Sep 2010 at 3:07