JavaScript dos and donts @ Mu-An Chiou
Do
When the core functionality of a feature cannot function with only HTML.
When the core functionality of a feature can benefit from some JavaScript. Start with only HTML, then progressively enhance it, so it can still work without JavaScript. A table can be pure HTML; a sortable table needs only a dash of JavaScript.
When HTML does not provide the user interface pattern required, then:
Is this user interface pattern absolutely essential? Can you use a checkbox or a select element and progressi...
Read more at muan.co