I have an ajax response callback like below.
$.ajax({
type: "POST",
url: "search.php?ajaxrequest=yes",
data: query_string
}).done(function( data ) {
$("#wtb_wm_listing").html(data);
$("#wtb_wrapper_middle_inner").focus();
});
I'm appending returned data into the div "wtb_wm_listing" which i have placed into main div "wtb_wrapper_middle_inner"
After appending the data I want to key focus on the main div "wtb_wrapper_middle_inner"
But when i try to focus, it is not working for me and as well as when i clicked my mouse into the div and try key down the div page is not scroll by pressing keyboard arrows.
In this case when I'm trying to make hide() or addClass() on that div its working for me.
Mouse scrolling is working for me by hovering the div.
Can anyone help me to solve this issue.
NOTE:
When I focus that div when page is load, at that time its working well, But when I append some ajax response data into that div, that time only its not working.