Home
TeamSite
checkbox value
amaresh
Hi All,
I am trying to get the value of the check box in the JS. The check box options values are 4,5,6. But when I get the values in side the JS, 0,1,2 is showing up. Here is my code. Any pointers?
-Amaresh
[html]
JS portion:
var abcItem = IWDatacapture.getItem("/Milestone/ABC");
var abcvalue = abcItem.getValue();
alert(abcvalue);
Output (if all the checkboxes are checked): 0,1,2
[/html]
Find more posts tagged with
Comments
Migrateduser
item = IWDatacapture.getItem("/Milestone/ABC");
label = item.getOptions()[item.getValue()].text;
pg 14 of TS 6.5 form api guide
Phanie
use getOptions()
amaresh
Thanks a lot guys.
-Amaresh