In: JavaScript
7 Jul 2010Tweet 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();
In: JavaScript|PHP
6 Jul 2010Tweet 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 [...]