Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JQuery到Mootools_Jquery_Mootools - Fatal编程技术网

JQuery到Mootools

JQuery到Mootools,jquery,mootools,Jquery,Mootools,有人能帮我把jquery代码转换成mootools吗 $("#" + '<%= txtInput.ClientID %>').parent().find(".textboxlist-bit-box-deletebutton").each(function(){ $(this).click(); }); $(“#“+”).parent().find(“.textboxlist位框deletebutton”).each(函数(){ $(此选项)。单击(); }); docume

有人能帮我把jquery代码转换成mootools吗

$("#" + '<%= txtInput.ClientID %>').parent().find(".textboxlist-bit-box-deletebutton").each(function(){
    $(this).click();
});
$(“#“+”).parent().find(“.textboxlist位框deletebutton”).each(函数(){
$(此选项)。单击();
});
document.id(“”)
.getParent()
.getElements(“.textboxlist位框deletebutton”)
.每个(功能(按钮){
按钮。fireEvent(“单击”);
});

从阅读

什么是
document.el
转换过来的<代码>document.id(“”.getParent().getElements(“.textboxlist位框deletebutton”).fireEvent(“单击”,{stop:Function.from})-getElements->执行Slick.find/search,getChildren=仅直接后代。每个都会自动在集合上执行。@DimitarChristoff document.el是一个打字错误。没有注意到getChildren不会重现的事实。谢谢第一个问题可能不知道如何接受,或者接受意味着什么。你在这里得到了一个很好的答案,如果它解决了你的问题,你可以点击接受它。
document.id('<%= txtInput.ClientID %>')
    .getParent()
    .getElements(".textboxlist-bit-box-deletebutton")
    .each(function(button) {
         button.fireEvent("click");
    });