albertopq/jquery_datepicker — Issue #3: When using nested attributes, id != name
Author: kb1ibt
Created: 2011-11-02 16:44:01+00:00
State: open

When the javascript is being generated if you are using nested attributes instead of getting the id it is getting the name. o in my case the generated javascript shows $("#registered_user[product_attributes][0]_purchase_date").datepicker(); which doesn't find anything, instead it needs to be $("#registered_user_product_attributes_0_purchase_date").datepicker();