on a webpage there is a "show more" button when I click inspect element appears
<input name="" id="" onclick="GetComments();" class="showMore showMoreNew" value=" المزيد" type="submit">
I want to click it using JavaScript
JQuery solution not work under certain condition, below solution always works.
document.getElementById("xxx").click();
GetComments()function?GetComments();function...$('.showMore.showMoreNew').trigger('click')onclickhandler on atype="submit"button. Therefore, this is related: Submit and onclick not working together.