How to disable button when checkbox is checked. vbscript?

What is the HTML checkbox convention to mean "either true or false"?

  • I'm designing a UI where the HTML checkbox is not used for input, but for selecting whether some criteria are selected or not. Therefore, the checkbox could be checked for true, or unchecked for false. However, I'd like an option "for either true or false" or "don't care." With standard HTML, I beliveĀ  the only way to do this to enable/disable the checkbox using another checkbox, Is it feasible to use a single checkbox to have the 3 options?

  • Answer:

    Maybe you could use a tri-state checkbox. For example see http://shamsmi.blogspot.com/2008/12/tri-state-checkbox-using-javascript.html.

Jarmo Dee at Quora Visit the source

Was this solution helpful to you?

Other answers

:D As you say check boxes are designed for conditional true or false.. to get more options you can use drop downs or you can design your own widget with JavaScript...

Manoj Hl

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.