The HTML standard for forms appears to be such that disabled input elements do not contribute to the form name/value collection.
Is there ANY way to get around this? I need to be able to toggle disable on and off but still return whatever the value is when the form is submitted.
I realize that I can use JavaScript to copy the value to a hidden input before the form is submitted, but I would prefer not to. Is there a cleaner way?
I'm using ASP.NET, not that that matters.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…