0
I can’t get the tag <br>
html in jquery.
$('#test').change(function(){
$('#doenca_atual').val($('#doenca_atual').val()+" <br> "+$('#test option:selected').text());
});
Instead of jumping the line with the <br>
, he simply put the <br>
text-based
<br> Z98 Outr estados pos-cirurgicos <br> Z95 Presenca implantes enxertos cardiacos vasc
It would have to stay that way
Z98 Outr estados pos-cirurgicos
Z95 Presenca implantes enxertos cardiacos vasc
But what is $('#current disease')?? One input, if it is, there is no break line in this element.
– LeAndrade
eh a textarea of html
– Wagner
textarea does not accept br you have to exchange for backslash N
– Rafael Mena Barreto