Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4644177y$(this).removeClass(‘error’).addClass(‘error’).show(); 😞
Although why are we adding and removing the same class?? -
GMR51634827y@C0D4 My first thought was to reset the visibility of the error element but don’t see why logically. -
nikomendon07yPerharps ".error" contains an animation, and this guy is triggering it (just guessing)
Related Rants

What only relying on JavaScript for HTML form input validation looks like
Found something true as 1 == 1
So another infamous code (or smart code) you decide, there's class 'error' in the template/html and here this genius is removing it and adding it back? is this even logical at any level,
I mean just hide() and show() would do the job
rant
jquery
js
my weekends are no fun