I need help accessing a button inside a div

This question already has an answer here:

  • How can I select an element with multiple classes in jQuery? 10 answers

  • Try this:

       for (var i = 0, cell; cell = table.cells[i]; i++) {                            
                $(cell).find('.btn.btn-default').val("new value");                  
            }
    

    Remove space in find method


       for(var i = 0, cell; cell = table.cells[i]; i++) {                            
            $(cell).find('.btn .btn-default').val("new value");                  
        }
    
    链接地址: http://www.djcxy.com/p/83096.html

    上一篇: 如何使用JQuery选择元素

    下一篇: 我需要帮助访问一个div内的按钮