Posts Tagged ‘ajax’

Ready, set, go! Waiting on Page Loads in JavaScript

Another JavaScript basic — use $(document).ready() to wait for an HTML document to load completely before running whatever function you put in ready()

Quick Tip: Use toggle() and show() in JavaScript Menus

Continuing the series of posts on basic JavaScript:

toggle() alternates something between showing itself and hiding, usually based on a .click() function

show(), on the other hand, conditionally show an element, but don’t let it disappear like toggle() does

Both are widely useful, with menus being a common use case.