2 ms·
> I've seen this in practice a lot in jQuery and many people with jQuery experience. A bit odd given jQuery often provides both options e.g. show[0]/hide[1] an
by masklinn 12y ago
> I've seen this in practice a lot in jQuery and many people with jQuery experience.
A bit odd given jQuery often provides both options e.g. show[0]/hide[1] and toggle(bool)[2].
[0] http://api.jquery.com/show/ http://api.jquery.com/show/
[1] http://api.jquery.com/hide/ http://api.jquery.com/hide/
[2] http://api.jquery.com/toggle/#toggle-display http://api.jquery.com/toggle/#toggle-display
- barrkel 12y agoYes (and toggleClass too), but they were only added in 1.3.