You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I submit a form containing your plugin example, the value sent to the server is 'Russia', not 'RU'.
Is this intended behaviour or am I misusing the plugin? Do I need to modify the form-submit using javascript or is normal HTTP form submission possible with this plugin.
My use case is Month selection
{January}
{February} etc.
But the value I want submitted to the server is 1, or 2
Thanks for your work,
The text was updated successfully, but these errors were encountered:
Hello, Mattholtom
Thank you for your question.
As you can see in markup in Readme file getmdl-select is a simple <input/> which works in conjunction with .mdl-menu. So with submitting form to server sends only input.value, not data-val. It is intended behaviour.
So for your task you need to read data-val attr and modify the form-submit using javascript
When I submit a form containing your plugin example, the value sent to the server is 'Russia', not 'RU'.
Is this intended behaviour or am I misusing the plugin? Do I need to modify the form-submit using javascript or is normal HTTP form submission possible with this plugin.
My use case is Month selection
{January}
{February} etc.
But the value I want submitted to the server is 1, or 2
Thanks for your work,
The text was updated successfully, but these errors were encountered: