selectone chocie
720489Feb 9 2010 — edited Feb 9 2010I have in a table selectedone choice as this
<af:selectOneChoice id="stats" onchange="return disable(this.value,this.id)" value="#{item.status}">
<f:selectItems id="option" value="#{com.items}"/>
</af:selectOneChoice>
It generates the following..
<select id="tablet:0:stats" name="tablet:0:stats" onchange="return disable(this.value,this.id)" class="x6">
<option value="0" title="10">iidiontn<option>
<option value="1" title="20">is idiotn<option>
now problem is... to ge the value I am having to do thsi...
var allocationRef = document.getElementById(id).options[value].title;
alert(allocationRef);
in com.items the values are 10 and 20.. but its setting the option title as 10 and 20 .. and the values as 0 and 1 in option...
how can i set the values of option same as value of selectonechoice so that i use it in javascript?
Edited by: Ayribisheklek on Feb 9, 2010 8:58 AM
Edited by: Ayribisheklek on Feb 9, 2010 8:59 AM