JQuery not working with tooltip new line character - Javascript String Operation

Javascript examples for String Operation:String Character

Description

JQuery not working with tooltip new line character

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-compat-git.js"></script> 
  <script type="text/javascript">
    $(window).on('load', function() {
$("#second").prop('title',"456 \r 456");
    });/*w  w  w  . j ava2  s  .  c om*/

      </script> 
 </head> 
 <body> 
  <div title="123 
 123">
    test 
  </div> 
  <div id="second">
    second test 
  </div>  
 </body>
</html>

Related Tutorials