Cannot click hidden button by JavaScript
问题 function openEditDialog(){ window.showModalDialog('/atmew/pages/asset/searchInclude/assetEdit.mew'); document.getElementById('reData').click(); alert('after rerender'); } then there is a button: <a4j:commandLink id="edit" action="#{searchController.openAssetEdit}" oncomplete="openEditDialog()" immediate="true" ajaxSingle="true"> <h:graphicImage url="/images/edit_icon.png" </h:graphicImage> <f:param name="arId" id="arId" value="#{vo.assetReceiving.id}"/> </a4j:commandLink> The Other button