Multiple Choice
Posted: 22 Apr 2013
I located the code for getting multiple choice values in your forum. In the example though you've hardcoded the checkbox index.
How do I get the index of the checkbox that is selected and pass it through to the code?
FD Example
var checkboxIndex = 2;
fd.field('MultiChoice').control()._el()
.find('input[type="checkbox"]').eq(checkboxIndex)
.is(':checked');
Pass in selected checkbox index
var checkboxIndex = <<MultiChoiceSelected>>;
fd.field('MultiChoice').control()._el()
.find('input[type="checkbox"]').eq(checkboxIndex)
.is(':checked');
How do I get the index of the checkbox that is selected and pass it through to the code?
FD Example
var checkboxIndex = 2;
fd.field('MultiChoice').control()._el()
.find('input[type="checkbox"]').eq(checkboxIndex)
.is(':checked');
Pass in selected checkbox index
var checkboxIndex = <<MultiChoiceSelected>>;
fd.field('MultiChoice').control()._el()
.find('input[type="checkbox"]').eq(checkboxIndex)
.is(':checked');