Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use js to get select value

// reference to 'scripts' select list 
// used throughout the examples below
var sel = document.getElementById('scripts');

// display value property of select list (from selected option)
console.log( sel.value );
Source by www.dyn-web.com #
 
PREVIOUS NEXT
Tagged: #js #select
ADD COMMENT
Topic
Name
6+9 =