I have multiple html elements on the view that are loaded with the ajax call. These html elements depends on javascript files that i have included. It is working properly when loaded without ajax but when i load it with ajax it stops working.
jQuery(document).on('submit','form#hc',function(e){
jQuery.ajax({
'url' : baseUrl+'manage-function',
'dataType': 'json',
'type' : 'post',
'data': {formData : formData},
success:function(response){
jQuery('.function_div').html(response.html);
}
});
});