I have an input text and want to check if the value is empty. In my example I have this:
var qttDeclared = tr.getElement("input[name$='[qttDeclared]']").get("value").toInt()
if(qttDeclared == "") {
console.log("vazio");
}
But this is not working for me.