Friday, July 20, 2012

Create MultiLine ToolTip Jquery

Use The Code (Method-1)
------------------------------------------
<script type="text/javascript" src="../../ui/jquery.ui.tooltip.js"></script>

<script type="text/javascript">
    $(function() {   
        $('#h1t').tooltip();
    });
</script>

<h1 id="h1t" title="NewLine1<br>NewLine2"> asdf </h1>

Use The Code (Method-2)
------------------------------------------

$('#yourElement').tooltip({
track: true,
delay: 0,
showURL: false,
showBody: " - ",
fade: 250
});
<a title="New Line - New Line - New Line - New Linet" id="yourElement" href="http://yogesmprajapati.bogspot.com">mPower Blog</a>

Disqus for yogi's talk

comments powered by Disqus