Here is my jsFiddle with full code.
If you hover over the Sign In | Register link you'll see a little popup. I am trying to accomplish 2 things with this:
- Replace the text "Replace this with a login form" with an actual form (see screenshot below); and
- Make the popup larger to support the size of the form (all attempts to make it larger than what you see have failed).
I am modeling my sign in/register form after this:
The current functionality is accomplished via the following HTML:
<li class="signin">
<a id="popoverData" href="#" data-content="Replace this with a login form" rel="popover" data-placement="bottom" data-original-title="Sign in to your account" data-trigger="hover">Sign In | Register</a>
</li>
Along with the following JS:
$('#popoverData').popover();
For one, I might be using the wrong tool for the job here (popovers). So if there is a better mechanism/construct in Bootstrap 3 that I should be using for this, then please let me know! If I am on the right track here, if data-content
is the only field I have to customize the text the user sees on mouseover/hover, then how do I inject an entire sign in/register form into this, as it is only a string attribute?!?