Here is my Jquery Code
$(document).on("click", "a.icons", function() {
var eventId = $(this).data('id');
var patientName = "<%= patients_list["+eventId+"].full_name%>";
$('#idHolder').html(patientName);
});
What I want is to use a Javascript variable as an index of EJS Array?
Any help would be highly appreciated.