jQuery(document).ready(function($) { $(function() { $('.dateinput').datePicker({clickInput:true}) }); });