## 表单提交


### 默认表单提交

:::demo 
```html
<form>
    <div id="demo1" class="xm-select-demo"></div>
    <button class="btn" type="submit">提交</button>
</form>

<script>
var demo1 = xmSelect.render({
    el: '#demo1', 
    data: [
        {name: '张三', value: 1},
        {name: '李四', value: 2},
        {name: '王五', value: 3},
    ]
})

</script>
```
:::


### 修改name

:::demo 
```html
<form>
    <div id="demo2" class="xm-select-demo"></div>
    <button class="btn" type="submit">提交</button>
</form>

<script>
var demo2 = xmSelect.render({
    el: '#demo2', 
    name: 'lalalalalala',
    data: [
        {name: '张三', value: 1},
        {name: '李四', value: 2},
        {name: '王五', value: 3},
    ]
})

</script>
```
:::