阅读背景:

使用HTML'readonly =“readonly”'与JavaScript'元素的奇怪行为.readOnly = true;'

来源:互联网 

Some background

So I was finishing up some enhancements in a web application that does some automatic interpolation of data. There are a handful of textboxes that the user fills out, and other textboxes in between them have values automatically calculated. The textboxes that receive automatically calculated values must be readOnly to prevent user changes, but can't be disabled or they won't get submitted on postback. Each of these textboxes also has a checkbox next to it so a user can consciously check it to make the field writable and thus allow them to override the interpolated value.So I was finishing up some en




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: