Question

i want to add a bootom-tooltip on my select box but unable to do so.its showing nothing on hover.

Here is my code for select box:

<select class="navbar-search pull-left span1" name="currency" id="select-currency" data-original-title="Tooltip on bottom" data-toggle="tooltip" data-placement="bottom">
    <?php foreach ($this->getCurrencies() as $_code => $_name): ?>
        <option value="<?php echo $this->getSwitchCurrencyUrl($_code) ?>"<?php if($_code==$this->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?>>
            <?php echo $_code ?>
        </option>
    <?php endforeach; ?>
    </select>

Here is my tooltip jquery:

<script>
     jQuery(function(){
        $("[data-toggle=tooltip]").tooltip();
    });
​</script>
Was it helpful?

Solution

Works fine for me, take a look at this: bootstrap tooltip on tag

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top