So I've got
How do I get the selected option's value? I am trying this:Code:<select id="timein1"> and <option value="00:00">00:00</option><option>...etc....</option> </select>
c'mon it's gotta be something easyCode:document.getElementById('timein1').onchange = domyfunction(); domyfunction() { console.log('the function was triggered...'); console.log(document.getElementById('timein1').option.selected); }


Reply With Quote
Bookmarks