Dynamically generated content in the web page contains an onclick action not working

By | July 25, 2018

please see the code

below link is generated via ajax call based on one dropdown selection

file download code looks like as below

The above code is not firing the download action

Solution: change the first line of code-instead of click add on action