0

This is my HTML code:

<textarea class="text ui-widget-content ui-corner-all note-text-area" id="backlinks" rows="10" name="backlinks" placeholder="Referring URL;;Link URL;;Anchor Text" style='width:100%'></textarea>

And this is my jQuery code:

$('[name=backlinks]').attr('placeholder', 'Referring URL;;Link URL;;Anchor Text\nor\nURL');

Altough it works well when using the Chrome browser (it shows the line breaks in the textarea placeholder), this is what I get on Mozilla Firefox:

Referring URL;;Link URL;;Anchor TextorURL

So, I really wonder what wrong is and how I can display newlines inside textarea placeholder when using Mozilla Firefox. Any idea?

Nadim2014
  • 105
  • 2
  • 10

0 Answers0