$("#selectboxid").val()
returns the value of the selected option and $("#selectboxid :selected").text()
returns the text.Solution found at:
http://marcgrabanski.com/articles/jquery-select-list-values
Solutions to technical problems that I come across. Keywords: The Web, Ubuntu, Windows, JavaScript, jQuery, AngularJS, PHP, Java, C++, mySQL, noSQL, and more.
$("#selectboxid").val()
returns the value of the selected option and $("#selectboxid :selected").text()
returns the text.$element->setRegisterInArrayValidator(false);
$form->addElement('multiselect', 'elementname', array('RegisterInArrayValidator' => false));