i want the datepicker to be generate dynamically, but somehow with my code above, there only a textbox is generating. it seems unable to call out the class. but when i put "<input type='text' class='datepicker'> in php, it work fine for me.
anything went wrong? or i shouldn't do in this way?