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

php - mysql multiple keyword search in any order -

routing - AngularJS State management ->load multiple states in one page -

unity3d - Problems porting a GLSL shadertoy shader to unity -