Articles for JS

Tweet Replace getElementById JavaScript function by using jQuery selector. Your old getElementById code: document.getElementById(’unique_id’).doSomething(); Your new jQuery code: jQuery(’#unique_id’).doSomething();

JS include

In: JavaScript|PHP

6 Jul 2010

Tweet In order to lower down number of http requests and speed up your website, you can use regular JS include, to include PHP file. <link rel="javascript" type="text/javascript" href="alljs.php"> PHP JS include file This is how PHP file, that includes all JS files you want to be included, should look on your server: 1 2 [...]

Make Magento Checkout Awesome