jQuery Validation bootstrap popover tooltip

Hi experts

I'm using the jQuery Validation bootstrap popover tooltip


http://stackoverflow.com/questions/24095761/jquery-validation-plugin-error-message-on-bootstrap-popover
This is a working example of it.
http://jsfiddle.net/3qYpM/420/

So on the example fiddle. Notice that when you drag and resize the browser window the popover stays with the textbox.

I have another example where I have a textbox centered in the middle of the screen and the popover  works fine but when i reduce the width of the browser window. the textbox moves to stay in the center of the browser but the popover seems to be anchored to the screen.

I want the popover to remain anchored to the textbox its validating not the screen.

anyone know the property that controls anchoring the popover to the textbox?

This is example has the same issue as my question. Notice how the popup doesn't stay with the button when browser window is resized.
http://www.w3resource.com/twitter-bootstrap/popover-example-trigger.html#

Anyone know how to anchor the popup to the button in this example?
LVL 1
maqskywalkerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lenamtlCommented:
There are a lot of issues  about popover
https://github.com/twbs/bootstrap/issues?utf8=%E2%9C%93&q=popover

Next version preview still in beta
http://v4-alpha.getbootstrap.com/components/popovers/

I have found this one interesting but didn't have the time to test it yet
http://sandywalker.github.io/webui-popover/demo/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brant SnowCommented:
WebUI popover has the same issues

You could try onResize

$(function ()
{ 
var x = 0;
$("#example").popover({trigger: 'focus'}, function(){
x= 1;
});

$( window ).resize(function() {
  if(x==1)
{
$("#example").popover({trigger: 'focus'});
}
});

});

Open in new window


If you provided an example with all absolute references to the css and javascript we could try experimenting or testing ourselves
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.