Saturday, 31 August 2013

Bootstrap Popover on Input : hover

Bootstrap Popover on Input : hover

I'm using simple form and trying to get the popover working for an Input.
The form Input:
<p>
<%= f.input :title, input_html: { class: 'login-form-block' },
:autofocus=>true, label: false, placeholder: "Title",
:hint => "Enter a Title for your Clip" %>
</p>
I added addclip.js to vendors/assets/javascripts and //= require
addclip.js in my application.js
I'm trying to get the popover work upon hovering the input field
Bootstrap Docs say:
Options can be passed via data attributes or JavaScript. For data
attributes, append the option name to data-, as in data-animation="".
and i guess i need the hover option

Could someone help me combine everything together and explain me the
Javascript i have to include to get this working, for my input?

No comments:

Post a Comment