Skip to content Skip to sidebar Skip to footer

How To Insert Placeholder Text In Text_area_tag In Rails?

I'm using the following code to generate a textarea tag: <%= text_area_tag :comment, '', autocomplete: 'off', class: 'form-control', placeholder: 'Your Comment' %> When rend

Solution 1:

The html seems to be valid to me.

<textarea name="comment" autocomplete="off" class="test" id="moretest" data-value="moretest" placeholder="snowman or iceman?"></textarea>

Post a Comment for "How To Insert Placeholder Text In Text_area_tag In Rails?"