How to include Polymer paper-dropdown-menu in form submit

后端 未结 1 1509
-上瘾入骨i
-上瘾入骨i 2021-01-05 14:56

When I submit this Polymer form with document.getElementById(\"form\").submit(); firstName and lastName are included in the POST-data, but the title-value from

1条回答
  •  青春惊慌失措
    2021-01-05 15:08

    This may solve your problem. Create a hidden input element and assign the selected item to the hidden element's value. This gives you the added benefit of the iron-input validators for multi-select for future forms.

    Save

    0 讨论(0)
提交回复
热议问题