Privat erkan kaplan Radiobutton Enable Disable: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "There are three states for a radiobutton, but the command is not .show() or .hide() to hide a radiobutton use radiobutton.style.display="none" to show a radiobutton, use radi...")
 
No edit summary
 
Line 1: Line 1:
There are three states for a radiobutton, but the command is not .show() or .hide()
There are three states for a radiobutton, but the command is not .show() or .hide()


<pre>
to hide a radiobutton use radiobutton.style.display="none"
to hide a radiobutton use radiobutton.style.display="none"
to show a radiobutton, use radiobutton.style.display="block"
to show a radiobutton, use radiobutton.style.display="block"
to gray out a radiobutton, use radiobutton.disabled=true
to gray out a radiobutton, use radiobutton.disabled=true
to turn it back on, use radiobutton.disabled=false
to turn it back on, use radiobutton.disabled=false
</pre>

Latest revision as of 13:17, 21 April 2013

There are three states for a radiobutton, but the command is not .show() or .hide()

to hide a radiobutton use radiobutton.style.display="none"
to show a radiobutton, use radiobutton.style.display="block"
to gray out a radiobutton, use radiobutton.disabled=true
to turn it back on, use radiobutton.disabled=false