I have two tabs as shown:
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="script-submit">
<input type="checkbox" id="cflow_flag"> Enable Coverage report<br>
<button type="button" id="submit-job" class="btn btn-primary">Submit</button>
</div>
<div role="tabpanel" class="tab-pane fade" id="commit-view">
<button type="button" id="submit-cflow" class="btn btn-primary">Submit</button>
</div>
</div>
upon checking/unchecking the box i need to toggle the $('#script-submit #submit-job)
button with the $('#commit-view #submit-cflow')
button
Note: Please note that only one out of the two tabs, #script-submit
and #commit-view
will be active at any given time