There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

severien ,

There are multiple ways to hide an element yet they standardized on one that often wouldn’t work.

It’s the most common one. And it’s not like you can’t hide the element with some other mechanism with jQuery.

Also you’re using an ancient method getElementById…

And? What’s the difference from document.querySelector() when querying for ID?

So what is the right way to do that in modern js?

What is the right way is context dependent. I don’t see how having extra .hidden { display: none; } boilerplate is somehow modern or superior.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines