I am using below js code for jquery defer parsing.
Here is my code:
<script type="text/javascript">
function downloadJSAtonload() {
var element = document.createElement("script");
element.src = "jquery-1.3.2.js";
document.body.appendChild(element);
/*
$(document).ready(function(){
$("a").addClass("test");
});
*/
}
// Check for browser support of event handling capability
if (window.addEventListener)
window.addEventListener("load", downloadJSAtonload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtonload);
else window.onload = downloadJSAtonload;
</script>
How can call $(document).ready for the above code?
Please help me asap...
Thanks in advance ...
This post has been edited by Dormilich: 05 August 2012 - 03:44 AM
Reason for edit:: please use [code] [/code] tags when posting code

New Topic/Question
Reply


MultiQuote



|