This is probably a simple question, but I can't seem to get around it.
I have two corresponding arrays, for example.
'0' => "Difficulty"
'1' => "Difficulty"
'2' => "Difficulty"
'3' => "Specialty"
'4' => "Specialty"
'5' => "Specialty"
'6' => "imagecontent"
'7' => "ShowMe"
'8' => "ShowMe"
and
'0' => "Easy"
'1' => "Average"
'2' => "Difficult"
'3' => "Specialty name x"
'4' => "Specialty name y"
'5' => "Specialty name z"
'6' => "All"
'7' => "Questions I have never seen"
'8' => "Questions I have answered incorrectly"
Arrays correspond to the filter settings for a group of questions; the first array refers to the "filter header", and the second array refers to the selection for each filter - "Filter Value". For each filter there can be several samples, therefore, for example, there are duplicate instances of the "Difficulties" filters and the "Specialty".
I want to display the values on the page to show the user which filter settings they apply.
I started with the following:
for (i = 0; i < filterID.length; i++) {
$( "div.currentFS" ).append("<div class='fs " + [i] + "'>" + filterID[i] + ": " + filterValue[i] + "</div>");
}
... , . , , , .
,
:
:
:
... :
: , , .
, , .
.
,
.