awesome_nested_fields icon indicating copy to clipboard operation
awesome_nested_fields copied to clipboard

javascript with awesome_nested_fields

Open penchiang opened this issue 12 years ago • 0 comments

I need to invoke a javascript function to one of the nested fields. So far, it works well for the field id such as: $('model_name_attributes_0_fieldname')

However, for the nested field, I have trouble to invoke the javascript using the following id: $('model_name_attributes_new_nested_item_fieldname')

The page source indicated the above is the correct id. However, it does not work. So, what is the correct id to be used for the nested fields so that I can execute a javascript function?

Can someone help?

penchiang avatar Jun 05 '12 23:06 penchiang