Ver originalfunction(event){ if (event.target.tagName.toUpperCase() == "INPUT") return; $("#login").animate({"left": "-180px"}, "slow"); });