<p id="a">Hello</p>
function $(selector) { var x=new aQuery(selector); return x; } function aQuery(id) { this.objId=id; function html(newh) { document.getElementById(this.objId).innerHTML=newh; } } $("a").html("Hello aQuery");
html
aQuery
this.html = function(newh) { document.getElementById(this.objId).innerHTML=newh; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)