Como verifico se o Input de texto está vazio ou em branco?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Como verifico se o Input de texto está vazio ou em branco??

??

24th Sep 2016, 7:57 PM
Gileade Lima
Gileade Lima - avatar
2 Answers
+ 1
se você está utilizando jQuery : If ($("#seuinput").val() == "") { faz algo } js puro: If (document.getElementById("seuinput").value == "") { faz algo }
25th Sep 2016, 2:50 AM
Yuri Martuccelli
Yuri Martuccelli - avatar
0
Resolvido, Obrigado :)
25th Sep 2016, 12:09 PM
Gileade Lima
Gileade Lima - avatar