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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -