문제

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>
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top