私はアプリケーションで単純なフォームを使用しています。インラインjsを使用してフィールド名を設定し、ユーザーがフィールドをクリックして次のように変更すると設定を解除します。
input type="text" class="ftext" value="First Name" onclick="if(this.value=='First Name') this.value='';" onblur="if(this.value=='') this.value='First Name'"
単純なフォームinptでこれを実行しようとしています<%= f.input :password, :required => true, :class => "ftext" %>
が、Webで解決策を見つけることができません。
これについて私に提案してください。
ありがとう、バラン