Hello!
I'm loading external page via jquery.ajax:
$("#mydiv").load("filter.html");
content of example.html:
<div id="filterdiv"><input id="filter" name="filter" size="40"/></div>
then I want to manipulate input#filter, so I wrote in javascript:
$('#filterdiv input').focus(function(){
alert(Hello);
}
and nothing happens. If I paste a code of filter.html directly to a page, it works, but when I call it via ajax,
$('#filterdiv input').focus(function(){
alert(Hello);
}
doesn't see ajax loaded content. Why do I do wrong? How can I manipulate ajax loaded html?