0
I want to know how to remove the focus of an element when it is clicked using pure Javascript.
I did it this way using jQuery
$(function(){
$(".btn").click(function(){
$(".btn").blur();
});
});
This served me very well, however, I changed some things on the site and jQuery was almost useless. It would be an exaggeration to include jQuery on a site just to do this.
Thank you, it worked perfectly!
– Clayderson Ferreira