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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -