I have some tabs and each tab has its own form like below:
ul.nav.nav-tabs
-for k,v in @list
li.nav-item class="active"
a.nav-link data-toggle="tab" href="##{k}" #{v}
div class="tab-content"
- for name in @another_list
div id="#{name}" class="tab-pane fade in active"
= form_tag({ action: "route/#{name}" }, method: "put")
.form-group
textarea.form-control name= test
input.btn.btn-primary type="submit" id = "submit_individual"
input.btn.btn-primary type="submit" id = "submit_all"
Each tab also has its own button that could submit the form for each individual tab. However I have another submit button with id="submit_all that I want to include so if the button is pressed, the forms are triggered for all the tabs. How would I go about doing this?