diff --git a/dom.js b/dom.js index 5657b8e..8aa45cf 100644 --- a/dom.js +++ b/dom.js @@ -11,13 +11,18 @@ if(!jx){ var jx = {} } jx.dom = {} ; +jx.dom.exists = function(id){ + return document.getElement(id) != null || document.getElementsByName(id) != null ; +} jx.dom.get = {} ; /** * This function will return the value of a dom object regardless of the object * @param {type} id * @returns {undefined} */ -jx.dom.get.value = function(id){} +jx.dom.get.value = function(id){ + +} jx.dom.get.children = function(id){} jx.dom.set = {} ;