Java Script get combo box selected value

0

How to get user selected value and text in the drop down box/combo box using java script.Here tested easy best methods to get combo box value.This is describes also browser compatibility.

Consider the following example.Note that the brackets.

If you are using () instead of [],in Firefox that will give you an ‘is not a function’ error. Because IE allows you to get away with using () instead of [].

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.