I have two Java objects of the form:
List<Integer> numberList = new ArrayList<Integer>() {{
add(2);
add(4);
add(8);
}};
And:
List<String> alphaList = new ArrayList<String>() {{
add("two");
add("four");
add("eight");
}};
And rendered to a PlayFramework view called index.scala.html using:
return ok(index.render(numberList, alphaList));
I must manipulate these arrays within a javascript script in index.scala.html. How do I do this?