I am using bootstrap 3 and specifically the tab display.
I want to fire an event when a specific tab is displayed so I ended up with a code coming from this question:
$('[href=#step3]').on('shown.bs.tab', function (e) {
console.log("step3");
});
That looks perfectly fine for me but produce the following error:
Error: Syntax error, unrecognized expression: [href=#step3]
It looks weird to me since I don't find any syntax error in this snippet. The element exists and is defined as follows:
<li role="presentation" class="disabled">
<a href="#step3" data-toggle="tab" aria-controls="step3" role="tab" title="Anteprima" class="scheda">
<span class="round-tab">
<i class="glyphicon glyphicon-credit-card"></i>
</span>
</a>
</li>