Javascript 无法将scroll事件绑定到通过ajax Success创建的div

Javascript 无法将scroll事件绑定到通过ajax Success创建的div,javascript,php,jquery,ajax,Javascript,Php,Jquery,Ajax,下面是我的代码——我使用ajax创建了一个新的div。部门名称为 $('#section_product_listing_Csearch_ss').html(html); 下面给出了ajax调用的代码 $.ajax({ type: "POST", url: "_ajax_files/product_listing_Csearch-ss_ajax.php, dataType: "html", success: function(html){ $('#section_product_listing

下面是我的代码——我使用ajax创建了一个新的div。部门名称为

$('#section_product_listing_Csearch_ss').html(html);
下面给出了ajax调用的代码

$.ajax({
type: "POST",
url: "_ajax_files/product_listing_Csearch-ss_ajax.php,
dataType: "html",
success: function(html){ $('#section_product_listing_Csearch_ss').html(html);
} });
我无法将滚动事件绑定到对象

#section_product_listing_Csearch_ss
我尝试了下面所述的一切,将其添加到ajax成功中;在$'section\u product\u listing\u Csearch\u ss'.htmlhtml


请检查_ajax_files/product_listing_Csearch-ss_ajax.php双引号未正确关闭。感谢您的回复。报价已经完成,ajax正在运行。php页面中的部分\u product\u listing\u Csearch\u ss已填充。问题是我无法将滚动事件绑定到php页面中的此html部分。非常感谢您的帮助Hello@Binu,请检查此项
1.) var newnode = $(html);  $newnode.find('#section_product_listing_Csearch_ss').scroll(function(){alert("hi");});

2.) $(window).on('scroll', '#section_product_listing_Csearch_ss',function(){
            alert("hi");});

3.) $("#section_product_listing_Csearch_ss").bind('scroll', function(){
            alert("hi"); }); 

4.) $(html).scroll(function(){ alert("hi");});

5.)$(html).bind('scroll', function(){ alert("scrolling");});          

6.) $('#section_product_listing_Csearch_ss').append('<div class="myDivx"></div>'); 

listenForScrollEvent($(".myDivx"));


function listenForScrollEvent(el){
    el.on("scroll", function(){
        el.trigger("custom-scroll");
    })
}


$("body").on("custom-scroll", ".myDiv", function(){
    console.log("Scrolled :P");
})