# Select

This option displays a select input and it has the following properties:

<table data-header-hidden><thead><tr><th width="112"></th><th width="112"></th><th width="108"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Default</strong></td><td><strong>Description</strong></td></tr><tr><td>options</td><td>Array</td><td></td><td><p>The property allows multiple number types. Example:<br></p><pre><code>[
   [
     'id'   => 'option_id',
     'name' => esc_html__( 'Option', 'zionbuilder' ),
    ],  
]
</code></pre></td></tr><tr><td>default</td><td>String</td><td></td><td>The property adds the default value:<br><code>'default'     => 'option_id',</code></td></tr></tbody></table>

Below is the following example of how the option can be used:

```
$options->add_option(
            'option_name',
            [
                'type'             => 'select',
                'description'      => esc_html__( 'Select the desired', 'zionbuilder' ),
                'title'            => esc_html__( 'Title', 'zionbuilder' ),
                'default'          => 'option_id_1',
                'options'          => [
                    [
                        'id'   => 'option_id_1',
                        'name' => esc_html__( 'Option 1', 'zionbuilder' ),
                    ],
                    [
                        'id'   => 'option_id_2',
                        'name' => esc_html__( 'Option 2', 'zionbuilder' ),
                    ],                    
            ]
        );
```
