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
-
C0D4681386y$(this).removeClass(‘error’).addClass(‘error’).show(); 😞
Although why are we adding and removing the same class?? -
GMR51635606y@C0D4 My first thought was to reset the visibility of the error element but don’t see why logically.
-
nikomendon06yPerharps ".error" contains an animation, and this guy is triggering it (just guessing)
Related Rants
-
tahnik63So I need to create a nice new web app. Let's look at some cool JS frameworks that I can work with. *5 mins l...
-
ahmedam23What only relying on JavaScript for HTML form input validation looks like
-
Kalvin17How does a front-end developer get away with murder? $('body').hide(); //I'll see myself out
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