Use <label>s next to the checkboxes

git-svn-id: https://flot.googlecode.com/svn/trunk@155 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 17 years ago
parent 044ee4e5b8
commit 829804c817

@ -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);

Loading…
Cancel
Save