このツールチップ コードをページ上で初期化しようとしましたが、jQuery を正しく接続できません。
Ubuntu で PHP を実行しており、Silverstripe を使用しています。次のスクリプトをどこに、どのファイルに追加しても機能しません。別のファイルから呼び出してみましたが、初期化もされませんでした。
このコードを PHP または SS ファイルに追加するにはどうすればよいですか? (シルバーストライプ CMS ファイル)
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
<button type=\"button\" class=\"btn btn-default help-tool\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Below you will find state-by-state breakdowns in Federal, State, and where available Local categories.
Explore the data by clicking the map or by clicking the magnifying lens in the table view.\"><i class=\"fa fa-info-circle fa-fw\"></i></button>