function minRange(input) { document.getElementById('max').setAttribute('min', input.value); }; function maxRange(input) { document.getElementById('min').setAttribute('max', input.value); };