Add columns to table in Javascript
14:01 08 Dec 2016

I'm creating a table that gives an overview of the events a user went to. I've created a table for this. What I want to do know is to check based on the user id, if he's registered for a certain event and display those events.

Here's my Html code:


And this is my javascript code:

var Append = function (waardes) {console.log("halloblo")

 var newEvent = $('#modal2').clone(true);
 newEvent.attr('id',waardes.ID);
 console.log(newEvent);

 var eventnaam = newEvent.find('#eventnaam');
 eventnaam.text(waardes.Naam);
 console.log(eventnaam);

 var eventdatum = newEvent.find('#datum');
 eventdatum.text(waardes.Datum);

}

I already checked if I go into my function Append!

javascript html