implementation of exists method (considering there will be methods that will inspect the name as well)

master
steve 10 years ago
parent 9f40ddb7ea
commit 31cd903a67

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

Loading…
Cancel
Save