Jquery on change not firing for dynamic content

前端 未结 2 1519
花落未央
花落未央 2020-12-03 11:55

I\'m trying to create a cascade dropdown with all dynamic elements.

My Html:

 
                        
    
提交评论

  • 2020-12-03 12:35

    I had the same problem on binding change function for dynamically added content. I solved it using this. Hope it helps someone ^^

    $(".select_class").live("change", function(){
       console.log("testing...");
    });
    
    0 讨论(0)
  • 提交回复
    热议问题