Replies: 1 comment
-
I dont think you're supposed to receive values for data- attributes. I recommend you to use axios to post your request to the server side. You're supposed to have a payload with your http request Frontend - Client side
Server - Adonis side
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have a text box:
<input type="text" id="item" name="item" data-item="5" data-len="3" class="hidden" />
request.all()
returnsitem: [ '' ]
(because it does not have set value)Is there any way of retrieving additional data item from an input (data-*) ?
Beta Was this translation helpful? Give feedback.
All reactions