when i use this code this is not work. i think this problem has occurred for double quotation sign
my html value is loading from database and i can not change double quotation to other thing
$('#infobox .information').html('<br><div style="text-align: left;">TEXT</div><br>');
thanks
edit :: i found problem
when my text have break line this source not work
like this :
$('#infobox .information').html('
hello
world
');
You can’t have a line break in the middle of a string. If you do want a line break, you can do this: