Actually I am new to the javascript I have used disabled here ,
Now In this ,
!props.updatedOption1 || !props.updatedOption2 || !props.updatedOption3 || !props.updatedOption4
I do have this four conditions ,
Now, what I want is that, if two are filled then it should be enabled, right now what happens is that four of them are compulsary.
So,I tried with the && condition but it was getting too lengthy.
So, can any one suggest me different solution?
Aucun commentaire:
Enregistrer un commentaire