diff options
Diffstat (limited to 'examples/turning-series.html')
-rw-r--r-- | examples/turning-series.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/turning-series.html b/examples/turning-series.html index 7b25479..f72fe62 100644 --- a/examples/turning-series.html +++ b/examples/turning-series.html @@ -67,7 +67,9 @@ $(function () { var choiceContainer = $("#choices"); $.each(datasets, function(key, val) { choiceContainer.append('<br/><input type="checkbox" name="' + key + - '" checked="checked" >' + val.label + '</input>'); + '" checked="checked" id="id' + key + '">' + + '<label for="id' + key + '">' + + val.label + '</label>'); }); choiceContainer.find("input").click(plotAccordingToChoices); |