gibney.org
:
Technology
:
Javascript
:
Repository
:
html_elements
(Entry Nr. 41, by user 1 |
edit
)
function ge_getValueById(Id) { return document.getElementById(Id).value; } // ge_Element class function ge_Element(Id) { this.Id=Id; this.Element=document.getElementById(this.Id); this.setValue = function(Value) { this.Element.value=Value; } this.addToValue = function(Value) { this.Element.value+=Value; } this.getValue = function() { return this.Element.value; } }
Create a new entry at this position