readOnly单选按钮 [英] readOnly radio buttons

查看:84
本文介绍了readOnly单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

有没有办法通过vbscript的javascript设置单选按钮,复选框和选择组只读?我可以将它们设置为禁用,但这不允许我在提交表单时结转发布的数据。好的,谢谢

解决方案








document.getElementById('your_id_here') 。enabled = false ;

Hello All,

Is there a way to set radio buttons, checkboxes and select groups to read only, through either javascript of vbscript?  I am able to set them to disabled, but that doesn't allow me to carry forward posted data upon submitting the form.  Ok, thanks

解决方案

yes

document.getElementById('your_id_here').enabled = false


这篇关于readOnly单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆