How to get the index value of selected checkbox in checkboxlist


Out of the above given options. If I select 'A' , I am trying to get the index value of 0 which is the index in an array format. Similarly for 'B' it should return 1 and for 'C' it should return 2. but upon using ${event.indexOf(checkboxlist0.Selected)} the only value I am getting is -1. Is there anyway to solve this?

If your options are populated from a variable like in this thread you should check this variable using the event argument for the index.

1 Like