/    Sign up×
Community /Pin to ProfileBookmark

jQuery help please (using Bootstrap popovers)

Hi,

I’m trying to use the popovers function which is from the Bootstrap site [URL=”http://twitter.github.com/bootstrap/javascript.html#popover”]http://twitter.github.com/bootstrap/javascript.html#popover[/URL]

I’ve created a working example of what they provide on the website using jsFiddle – [URL=”http://jsfiddle.net/HQ7n6/2/”]http://jsfiddle.net/HQ7n6/2/[/URL]

My question being, if you look at my code in jsFiddle I can get the popover to work on the button, however what I would like to do is for the popover to work on the list items highlighed in yellow. So each list item provides a different message which display to the right of the list item. Not sure how possible this is, or if it might be easier wrapping the list item in a div maybe? Alternatively could this be added to the label instead? I’m going to have checkboxes and radio icons as well, so don’t want it adding to the input field.

Screenshot here of how I would like it to work [URL=”http://imageshack.us/photo/my-images…eenshotoh.png/”]http://imageshack.us/photo/my-images…eenshotoh.png/[/URL]

Any help or suggestions appreciated.
Thanks in advance.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ukweb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...