2
我有一个text_field_tag,在rails中,我已经指定了它的id到jquery-ui-datepicker。一切正常。但即使在页面刷新后,文本字段中的值仍然存在。有没有解决这个问题的方法?Rails和jQuery UI datepicker
<%= text_field_tag("meeting_filter_from") %>
jQuery代码:
jQuery('#meeting_filter_from').datepicker({dateFormat: 'MM dd, yy', showOn: 'both', buttonImage: '/images/calendar.gif', buttonImageOnly: true});