diff --git a/ajquery.js b/ajquery.js new file mode 100644 index 0000000..d388f7f --- /dev/null +++ b/ajquery.js @@ -0,0 +1,7 @@ +function $(sel, el) { + return (el || document).querySelector(sel); +} + +function $$(sel, el) { + return (el || document).querySelectorAll(sel); +}