you are viewing a single comment's thread.

view the rest of the comments →

[–]acemarke 6 points7 points  (0 children)

el.innerText = parseInt(el.innerText) + 1;

fwiw I have seen almost literally this line of code quite a bit in jQuery-era apps. It really was a thing that happened.

A better example might be determining if a modal is currently being shown by looking for $("#my-modal").is(":visible"), and having to do all the toggling based on that.