垂直ボタン グループ (ブートストラップ) があり、アクティブなボタン (アクティブなクラスを持つ) を見つけて、アクティブなボタンの i クラスを含む配列を作成する関数が必要です。ボタン グループは次のようになります。
<div class="btn-group-vertical" data-toggle="buttons-checkbox">
<button type="button" class="btn customwidth"><i class="icon-rss"></i> news</button>
<button type="button" class="btn customwidth active"><i class="icon-bullhorn"></i> opinion</button>
<button type="button" class="btn customwidth active"><i class="icon-lightbulb"></i> research</button>
<button type="button" class="btn customwidth"><i class="icon-signal"></i> stats</button>
<button type="button" class="btn customwidth active"><i class="icon-info-sign"></i> how to...</button>
<button type="button" class="btn customwidth"><i class="icon-desktop"></i> platform/app</button>
<button type="button" class="btn customwidth"><i class="icon-cloud"></i> tool</button>
<button type="button" class="btn customwidth"><i class="icon-minus-sign"></i> uncategorised</button>
</div>
この関数は、いずれかのボタンをクリックするとトリガーされます。
どうすればこれを行うことができるか考えてください。
ありがとう
ジョナサン