nested_form_fields
nested_form_fields copied to clipboard
Need to start an event/function after fields_added.nested_form_fields
Is there an event/function I can call to run AFTER fields_added?
It's in the readme: fields_added
@ncri I need to be able to call an event after the one below:
$(document).on("fields_added.nested_form_fields", function(){ $('.increment').last().text('<%= @less_per_unit %>'); calc_total(); });
Oh, i was reading "after fields added". ;-) Well, the fields_added event is the last thing happening when adding nested fields, so you can simply put the code behind the other code you have in the on callback? Why would it need to be later?