I want to run a jquery function on html loaded through ajax. How can I do it. Please see that I cant use it inside $.ajax() because this ajax() function is already managed by another module in the system and I cant hook into it. I tried the following, but its not changing the value of input field loaded via ajax. Any idea?
$(document).on("ready", function(){
run_my_function();
});
function run_my_function(){
$('selector_on_html_loaded_through_ajax').val('Hi');
}