pixel-editor/_ext/scripts/utilities/getSetValue.js

11 lines
314 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);
return element.value;
}
function setValue(elementId, value) {
var element = (typeof elementId == 'string' ? document.getElementById(elementId) : elementId);
element.value = value;
}