I have seen some questions that answer adding to an object but I believe this is slightly different as it involved a html checkbox.
So i basically need to put in place a html checkbox that will add the selection AU01,2,3,4 etc and apend it to the function i already have. This is the function I have made.
$(document).ready(function() {
var data = {};
var featuresData = [];
var emotionsData = {};
var emotions = [{
title: "Happiness",
AUs: ["AU04", "AU12"]
}];
so where it says AUs: .. i want to be able to add in additionals (or subtract them) depending on which checkbox is clicked. each checkbox will represent an AU. I hope this makes sense.
Aucun commentaire:
Enregistrer un commentaire