html - Popover on input field -
i've tried looking @ previous solutions none of them have worked.
i'm trying have popover show left after clicking on input field.
html:
<input id="name" type="text" placeholder="type full name" rel="popover">
js:
<script type="text/javascript"> $('#name').popover({'title': 'name tooltip'}); </script>
if use placement:left
when init popover should work. popover not working @ all, or not on left?
and, don't forget document.ready..
$(document).ready(function() { $('#name').popover({title:'name tooltip',placement:'left'}); });
demo: http://bootply.com/61386
Comments
Post a Comment