fixed and implemented jx.dom.set.value

master
Steve L. Nyemba 10 years ago
parent f6fbf79a9e
commit 81aa54405c

@ -258,6 +258,14 @@ jx.dom.set.value= function(id,value){
} }
} }
if(key.match(/div|span|textarea/i) || (key.match(/input/i)&& obj.type.match(/text|password/i) ) ){
if(key.match(/input/i) == null){
obj.innerHTML = value ;
}else{
obj.value = value;
}
}
} }
/** /**
* This function sets an attribute a value to a given attribute or creates and sets it otherwise * This function sets an attribute a value to a given attribute or creates and sets it otherwise
@ -296,3 +304,4 @@ jx.dom.set.focus = function(id){
_dom = jx.dom.get.instance(id) ; _dom = jx.dom.get.instance(id) ;
_dom.focus(); _dom.focus();
} }

Loading…
Cancel
Save