Creating widgets with JavaScript using database dates

How should I create a calendar web app page using Java Scritp that will show me, when clicking on a date all the inflammations related to that day. Infos that are stored in a database.

What is an inflammation? I am not familiar with the terminology for a calendar date.