SyntaxFix
Write A Post
Hire A Developer
Questions
You should use html():
SEE DEMO
$(document).ready(function(){ $("#date").html('<span>'+$("#date").text().substring(0, 2) + '</span><br />'+$("#date").text().substring(3)); });