I want to have the following text with break lines in my .js file:
button = 0;
var cardTextDefault = function(textInProzent){
$("#button").text('text part I.\n is:'+percent+'%\n\n text part two');
}
This var is afterwards called when clicking the button:
cardTextDefault(button.value);
Do you have any clue why \n is not breaking my line?
tag instead – Aefits Jan 12 '18 at 12:32
like `'text part I.'
' is:'+percent+'%'
'text part two'` – SF..MJ Jan 12 '18 at 12:34