Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 15551

Disabled form inputs do not appear in the request

$
0
0

I have some disabled inputs in a form and I want to send them to a server, but Chrome excludes them from the request.

Is there any workaround for this without adding a hidden field?

<form action="/Media/Add"><input type="hidden" name="Id" value="123" /><!-- this does not appear in request --><input type="textbox" name="Percentage" value="100" disabled="disabled" /> </form>

Viewing all articles
Browse latest Browse all 15551

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>