How to get the CheckBoxlist Value using Javascript(ASP.NET Checkbox list)

Using below javascript function can able to get the all the text of checkbox list. But can’t able to get the value (It passing as “on”). var CHK = document.getElementById(“<%=chkFun.ClientID%>”); var checkbox = CHK.getElementsByTagName(“input”); var label = CHK.getElementsByTagName(“label”); var listOfSpans = chkBox.getElementsByTagName(‘span’); for (var i = 0; i < checkbox.length; i++) { var value =…

Details

Trying to sort an Array based on another Array alphabetical order

I’ve got 2 ArryLists: an Integers one and a Strings one. ArrayList<String> stars = new ArrayList<>(); ArrayList<Integer> index = new ArrayList<>(); index.add(1); index.add(2); index.add(3); index.add(4); index.add(5); index.add(6); stars.add(“g”); stars.add(“c”); stars.add(“a”); stars.add(“l”); stars.add(“b”); stars.add(“q”); I need to rearrange the values of the index ArryList such that stars.get(index.get(i)) will give the stars Array in Alphbetical order I…

Details