jquery ui - show password requirement bootstrap popover on hover/focus and pass explicit Html contents inside Popover to display -


how can show password requirements password field using twitter bootstrap pop-over , jquery on hover.

<input id = "txtpassword" type = "password"  title ="password" /> 
  1. i want pass custom "html" content of popover.
  2. change title of pop-over custom title
  3. change style of pop-over current basic custom style.

for starter can make things simple , use simplest popover bootstrap:

1.include in project right files of bootstrap in order make work: a.bootstrap-tooltip.js b.bootstrap-popover.js c.jquery.min.js d.bootstrap.css

2.use element element fire popover, example:

<a href="#" id="example" rel="popover" data-content="it's simple create tooltop website!" data-original-title="twitter bootstrap popover">hover popover</a>   

with the: id="example" can access element jquery in order display content popover

on data-content="some text": text shown on popover window

on data-original-title="some title": can decide title show on popover window

3.use jquery access , activate popover this:

$(function ()   { $("#example").popover();   });   

just start , try dig deeper goal.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -