My ERB code is:
    <div class="field">
        <%= f.label "Phone Number (Optional)" %><br />
        <%= f.text_field :phonenumber %>
    </div>
How can I leave text in the field which is deleted when the user clicks on the field? Thanks!
Add placeholder: "text" option to text_field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With