Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33122
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: How to make the button disappear upon click? |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <758dd4f9-4905-4bab-91c8-f91e16c50c80@googlegroups.com> <attribute-values-20170425204220@ram.dialup.fu-berlin.de> <3984715.fXfLaG00ZD@PointedEars.de> |
| Date | 2017-04-26 10:45 +0200 |
| Message-ID | <XnsA7636D722190Feejj99@194.109.6.166> (permalink) |
Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote on 26 Apr 2017 in
comp.lang.javascript:
> In maintainable code, one would probably add a class name instead and let
> the stylesheet specify the formatting:
>
> onclick="this.classList.add('hidden')"
classList is powerfull, had forgotten that one.
<http://caniuse.com/#feat=classlist>
<https://hacks.mozilla.org/2010/01/classlist-in-firefox-3-6/>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
How to make the button disappear upon click? justaguy <lichunshen84@gmail.com> - 2017-04-25 08:54 -0700
Re: How to make the button disappear upon click? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-25 22:05 +0200
Re: How to make the button disappear upon click? justaguy <lichunshen84@gmail.com> - 2017-04-27 17:56 -0700
Re: How to make the button disappear upon click? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-26 03:33 +0200
Re: How to make the button disappear upon click? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-26 10:45 +0200
csiph-web