0

次の HTML 入力フィールドがあります。

<input type="text" class="login-field" value="" placeholder="Enter your name" id="login-name" />
<label class="login-field-icon fui-user" for="login-name"></label>

simple_formクラス、IDなどの同じプロパティを持つように、それを自分のフィールドに変換したい.

<%= f.input :email%>

simple_formフィールド内に HTML プロパティを追加する方法はありますか?

4

1 に答える 1