Good morning, I'm having some difficulty trying to break a line using javascript's [b] \ n [/ b]. The code is working perfectly, what happens is that at the time of displaying, it looks something like this:
My nick: Vinicius How I discovered the server: YouTuben I want to play because:Type \ n is not breaking the line, but it appears there at the end of every string I put in, what's going on?
<script>
$(function () {
$('[name="post"]').click(function () {
var nick = $('#field0').val();
var descobriu = $('#field1').val();
var motivo = $('#field2').val();
$('input[name="subject"]').val('[ Whitelist] ' + nick + ' ');
$('input#message').val('[b]Meu nick:[/b] ' + nick + ' <br>[b]Como descobri o servidor:[/b] ' + descobriu + ' \n[b]Eu quero jogar porque:[/b] ' + motivo);
});
});
</script>