mercredi 8 mai 2019

enable/ disable checkbox in a gridview using jquery

I have a gridview with 3 checkboxes and button. I want to write the conditions below in jquery:

if the checkbox 1 ist checked, the checkbox 2 shall automatically be disabled and checkbox 3 shall automatically be checked

if the checkbox 2 ist checked, the checkbox 1 shall automatically be disabled and checkbox 3 shall automatically be checked

if none of the checkbox 1 and the checkbox 2 shall ist checked, they shall automatically be enabled and checkbox 3 shall automatically be unchecked

checkbox 3 shall automatically be checked only if one of the checkbox 1 and the checkbox 2 ist checked

the checkbox 1 and the checkbox 2 don't have to be checked at the same time.

if all the checkboxes 3 of the gridview are checked, the status of the shall be change to ready.

Thanks




Aucun commentaire:

Enregistrer un commentaire