TWO BOX CHECK GIVING ERROR

Asked

Viewed 16 times

0

inserir a descrição da imagem aqui Using this check in case the user leaves the text box blank, he gives me an Alert saying that he has to insert something, but is not entering this part of the code..

  • 1

    Leandro, the site has support for codes directly in the body of the question; please avoid posting them in image form.

  • 1

    Please click on [Edit] and put the code as text. Putting it as an image is not ideal, understand the reasons reading the FAQ.

  • "but you are not entering this part of the code" what part? if displays the Alert is pq entered in the if and code of ifends after that where you lock your keys

  • @Ricardopunctual then mano, but does not display the Alert kdsksdk

  • so, do a debug, it may be the variable is not null but empty, which is different. Try changing to that: recebeValor.toString().trim().isEmpty())

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.