value using JQuery-刺人心的回答
value using JQuery
How I can get select component value using Jquery or javascript
MyJSF code below
As Primefaces provides a Javascript API for its components, you can access it through the widgetVar
widgetVar
xhtml
JS
PF('selectWV').getSelectedValue();//gets the value PF('selectWV').getSelectedLabel();//gets the label