From 81aa54405c93a2b25c839ea8f1ab95832270bedc Mon Sep 17 00:00:00 2001 From: "Steve L. Nyemba" Date: Fri, 17 Oct 2014 21:31:22 -0500 Subject: [PATCH] fixed and implemented jx.dom.set.value --- dom.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dom.js b/dom.js index 472f3a5..4cf7c4e 100644 --- a/dom.js +++ b/dom.js @@ -257,6 +257,14 @@ jx.dom.set.value= function(id,value){ key = obj[0].tagName ; } } + + 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; + } + } } /** @@ -296,3 +304,4 @@ jx.dom.set.focus = function(id){ _dom = jx.dom.get.instance(id) ; _dom.focus(); } +