News for hackers. Stuff that matters.
Re:The Future of JQuery UI and JQuery Mobile by drinchev on Thursday December 21, 2017 @04:57PM (#15983169)
In this specific case jQuery's `show` is just giving you a shortcut to show/hide arbitrary elements.

Try doing this with CSS, please.

    <div class="element"></div>

    .element { display: block; }
    .element.is-hidden { display: none; }

    document.getElementsByClassName("element")[0].classList.add( "is-hidden" );
You should never ask yourself "How can I accomplish that without jQuery", but rather "What would be the best way to do it!"

There are no comments on this comment yet.