sQuery - a mini library for selecting DOM elements
Note "sQuery" is just my remake of famous DOM selector ...
Stable version: 1.5 + fix - sQuery.js
Minified: 1.5 + fix - sQuery.min.js
Step 1 Include the `sQuery.js` file in your html head tag.
<head>
<script src="sQuery.js"></script>
</head>
Step 2 Run the sQuery file after the documents or window loads. You can give it a name of your own. Like creating a new function constructor.
// sQuery v1.0
function $(e){
return new sQuery(e);
}
window.onload = function(){
$("p").text("Hello");
};
// NOW sQuery v 1.1.1 and above now supports .ready() method
sQuery("document").ready(function(){
//code here
});