본문 바로가기

개발

Radio disabled Property

Radio disabled Property

Radio Object Reference Radio Object


Examples

Example 1

Disable a radio button:

<script>

document.getElementById("cats").disabled=true;

</script>

The result will be:


Try it yourself »



Definition and Usage

The disabled property sets or returns whether a radio button is disabled, or not.

A disabled element is unusable and un-clickable. Disabled elements are usually rendered in gray by default in browsers.

Syntax

Set the disabled property:

element.disabled=true|false

Return the disabled property:

element.disabled



Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The disabled property is supported in all major browsers.


Radio Object Reference Radio Object

'개발' 카테고리의 다른 글

비 전공 대상의 IT 관련 도서 리스트  (0) 2013.10.11
구글, 무료 HTML5 웹저작도구 공개  (0) 2013.10.01
Redmine  (0) 2013.10.01
Xml 명명 규칙 - 특수 문자에 대하여  (0) 2013.09.06