pixel-editor/js/util/getSetValue.js

12 lines
376 B
JavaScript
Raw Normal View History

2019-03-27 02:20:54 +03:00
function getValue(elementId) {
var element = (typeof elementId == 'string' ? document.getElementById(elementId) : elementId);
console.log("setting: " + elementId + ": " + element.value);
2019-03-27 02:20:54 +03:00
return element.value;
}
function setValue(elementId, value) {
var element = (typeof elementId == 'string' ? document.getElementById(elementId) : elementId);
element.value = value;
}