function Tempcoche(){
for(y = 0; y < choices.childElementCount; y++){
if (y<10){
choices.children[y].checked=true
}else{
choices.children[y].checked=false
}
}
$('plotAccordingToChoices()');
}
$('plotAccordingToChoices()') does not give anything.
How should I do it?
This is jQuery syntax used to select elements in an HTML document. See jQuery documentation.
$('selector')
This is how you call a javascript function, which I think is what you're trying to do.
plotAccordingToChoices()
But instead what you have written is this, which is not going to work.
$('plotAccordingToChoices()')