SyntaxFix
Write A Post
Hire A Developer
Questions
use this
<div id="date">23/05/2013</div> <script type="text/javascript"> $(document).ready(function(){ var x = $("#date").text(); x.text(x.substring(0, 2) + '<br />'+x.substring(3)); }); </script>