Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div title="This from Ricard
And also a test
Rent 3000.00"></div>
  
  <table border='1'>
    <td id='text1'></td>
    <td id='text2'></td>
  </table>
</body>
</html>
 
var br = $('div:first-of-type').attr('title').replace(/\n/g, "<br/>");
var lb = $('div:first-of-type').attr('title').replace(/\n/g, "\\n");
$("#text1").html(br);
$("#text2").html(lb);
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Kryz23pro
0viewers