I have a page in which I have a div. The content from that div is being populated by an includes page, and that includes page is making a call to a database to retrieve content
it will work with this
$(document).on("click",".newtask",function(){
or
$(document).delegate(".newtask","click",function(){