8
4

More than 5 years have passed since last update.

apex:inputでplaceholderやautofocusを利用する方法

Last updated at Posted at 2014-07-27

Visualforce Developers Guideのapex:inputの項目にplaceholderやautofocusなどのHTML5で用意されている属性についての記載は載っていませんが、html-placeholderやhtml-autofocusのように"html-"をつけてあげることで使用することができます。

<apex:input type="text" value="{!userName}"styleClass="form-control" html-placeholder="Email" required="true" html-autofocus="false" />
8
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4