Disabled form inputs do not appear in the request

若是元素设置为disableed 那么这个元素 将不会做为参数传递放在server的请求当中。app

若是想要获取到该元素而且设置它的属性为只读:orm

var inputstatustimestamp=document.getElementById('statustimestamp');server

inputstatustimestamp.readonly=true;                                      ##设置元素为只读
 inputstatustimestamp.style.backgroundColor = "#DEDEDE"; ###设置背景颜色。get

http://stackoverflow.com/questions/7357256/disabled-form-inputs-do-not-appear-in-the-requestinput

相关文章
相关标签/搜索