javascript - Count Dynamic Fields in Cocoon Gem -
i'm little bit stuck counting in forms produced cocoon gem. can help me?
i need set numbering in box, "add party#1 add together party#2 add together party#3"
my button:
<%= link_to_add_association '+ add together party', f, :case_parties, :partial => 'client_party_fields', :class => 'btn btn-inverse', :id => 'btn_client_add_party', :count => 1 %> when clicked that, renders
<div class="box"> <div>party # number </div> <div class="content> <input class="form-control" id="test" name="test[case_number]" type="text"> </div> </div> javascript ruby-on-rails cocoon-gem
No comments:
Post a Comment