pixel-editor/_ext/scripts/utilities/getSetValue.js
2019-03-26 23:20:54 +00:00

11 lines
314 B
JavaScript

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;
}