className vs. get/setAttribute method
When to use setAttribute vs .attribute= in JavaScript?
javascript setAttribute 'className' works onLoad, but not onClick Javascript class Vs className function vs method in JavaScript (function(){}) vs function(){}(); javascript i++ vs ++i javascript: !( booleanCondition() ) vs ( booleanCondition() == false ) 'this' in a function VS 'this' in a method this vs $(this) jquery $.post() vs $.get() javascript function vs. ( function() { ... } ()); ClassName vs Id - Javascript Functions JSIL vs Script# vs SharpKit if (var) vs. if (var != "") $.ajax vs $.post vs $.get vs $.load (function(){})() vs. !function(){}() $(this).parent().children(".classname") vs $(this).parent().find(".classname") encodeForHTMLAttribute vs encodeForJavaScript !function(){ }() vs (function(){ })() '&&' and '||' vs '? :' JavaScript for...in vs for $(this) vs this in JavaScript ' VS " in javascript In javascript == vs =? set HTML Attributes As Element Properties vs setAttribute method element.setAttribute('style', 'attribute :value;') vs. element.attribute = 'value' == vs === in Javascript .innerHTML vs. createElement() | setAttribute() vs. Direct* javascript var vs this JavaScript: that vs this