jquery - how do i put br in javascript .text -
how put br inside text tried putting 'br' doesnt work display br literally on screen
i agree @user3284463 , try add tag in text , , want see rendered result! replace $('#win').text()
$('#win').html()
eg :
$('#win').html(winner+' <br /> '+'stars'+' <br /> '+'earned'+' completion time'+' '+ counter +' seconds');
see jquery text
see jquery html
Comments
Post a Comment