Pls what is the right way to pass options via javascript for bootstrap tooltip/popover: Via data attributes works as in:
<input type="text" data-toggle="tooltip" data-placement="right" data-animation="fade" data-delay="200" data-trigger="focus" data-content="foo">
But using javascript this doesn't:
<script>
jQuery(function ($) {
$("input").popover()({
animation:"fade",
delay: "200",
trigger:"focus",
placement: "right"
});
});
</script>
what is the right syntax?