htmlcsstwitter-bootstrap

Popover on input field


I've tried looking at previous solutions but none of them have worked.

I'm trying to have a popover show up to the left after clicking on the input field.

HTML:

<input id="name" type="text" placeholder="Type your full name" rel="popover">

JS:

<script type="text/javascript">
  $('#name').popover({'title': 'Name tooltip'});
</script>

Solution

  • Dumb mistake by me. I wasn't loading the JavaScript files from the right directory.