5 lines
115 B
JavaScript
5 lines
115 B
JavaScript
export function getElementValue(id) {
|
|
const el = document.getElementById(id);
|
|
return el ? el.value : '';
|
|
}
|