How can I submit a disabled entry item in a form?

advertisements

This input tag is disabled but I want to submit this form value.

<input type="text" name="quantity" value="400" class="field left" disabled />

Please help me about this tag. Thanks in advance.


Try using readonly instead of disabled

<input type="text" name="quantity"  value="400" class="field left" readonly />

If you still want it grayed out, you can set a background color:

<input type="text" name="quantity" value="200" style="background-color: #f0f0f0;" readonly />