jQuery tooltip add line break

twoface

New Member
So, I want to take the content of a div in which I have several \[code\]<br/>\[/code\], and then pass it as a title attribute using jQuery tooltip widget. I want the lines to appear one beneath the other inside the tooltip. thx. the code so far is:\[code\].Lines{width: 125px;height:20px;overflow:auto;}$(function() {$(document).tooltip();$(".Lines").hover(function(){IaTxt=$(this).html()$(this).prop('title',IaTxt)}) });<div class="Lines">First line.<br/>Second line.<br/>Third line!<br/>Fourth line?</div>\[/code\]
 
Back
Top