Let’s say I have this array
[1,2,3,4,5,6,7,9]
What I want to output is a string with:
"{1 to 7;9}"
I have this code:
var _checkbox = [1,2,3,4,5,6,7,9];
for (i=0; i<_checkbox.length; i++) {
//if ($($(_checkbox)[i]).is(":checked"))
ignore_response_from.push(i+1)
}
The only problem I have is to output the string “{1 to 7;9}”. how should I do this?
Here you go, I have included a basic test case as well:
here is the fiddle