# maxbuttons/7.10/blocks/tpl/option_select.tpl

MaxButtons – Create buttons, version 7.10. 16 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/7.10/code/blocks/tpl/option_select.tpl
- Raw: https://pluginprobe.com/plugins/maxbuttons/7.10/raw/blocks/tpl/option_select.tpl
- Modified: 2019-02-06T14:57:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/7.10/code/blocks/tpl/option_select.tpl#L10-L20`.

```
{if:label} 	<label for='%%id%%' class='color'>%%label%%</label> {/if:label}
{if:before_input} %%before_input%% {/if:before_input}
<div class="input option_select %%name%%"  {if:conditional}data-show="%%conditional%%"{/if:conditional}>
	<select name='%%name%%' id='%%id%%'
		{if:inputclass}class="%%inputclass%%"{/if:inputclass}
		{if:disabled} disabled {/if:disabled}
	>
		{for:options}
			<option value='%%key%%' {if:selected=%%key%%} selected {/if:selected=%%key%%} >%%item%%</option>
		{/for:options}
	</select>
	{if:help}<div class="help dashicons dashicons-info "><span>%%help%%</span></div>{/if:help}
	{if:error}<p class='error'>%%error%%</p>{/if:error}
	{if:warning}<p class='warning'>%%warning%%</p>{/if:warning}
</div>

```
