Tuesday, October 18, 2011

how do get selected value from html dropdown in javascript

document.getElementById('yourSelectBoxId').options[document.getElementById('yourSelectBoxId').selectedIndex].value

No comments:

Post a Comment