Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit e765d21

Browse files
author
scottjehl
committed
documented how to disable the hidePlaceholderMenuItems option in selectmenus
1 parent 6dce87a commit e765d21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/forms/forms-selects.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ <h2>Placeholder options</h2>
133133
<li>An option with a <code>data-placeholder="true"</code> attribute. (This allows you to use an option that has a value and a textnode as a placeholder option).</li>
134134
</ul>
135135

136-
136+
<p>You can disable this feature through the selectmenu plugin's <code>hidePlaceholderMenuItems</code> option, like this:</p>
137+
<pre>
138+
<code>
139+
$.mobile.selectmenu.prototype.options.hidePlaceholderMenuItems = false;
140+
</code>
141+
</pre>
137142

138143

139144
<p>Here's a demo of various placeholder options:</p>

0 commit comments

Comments
 (0)