javascript click button by id
<button id="3" onClick="reply_click(this.id)">B3</button>
<script type="text/javascript">
function reply_click(clicked_id)
{
alert(clicked_id);
}
</script>document.getElementById("some_elment_id").click();var button = document.getElementById("button");
button.click();const element = document.querySelector('element');
element.click();
Also in JavaScript:
- how to count specific letters in string js
- javascript create element with class
- array from js
- preview image file upload javascript
- nodejs oauth2 request
- hark javascript
- javascript detect escape key pressed
- Une erreur JavaScript fatale s'est produite. Faut-il envoyer un rapport d'erreurs
- js constructor object
- integers to space separated string in javascript
- object destructuring into this
- printf statement in javascript
- javascript double question mark
- get last item in map javascript
- jQuery create div element
- Cannot assign to read only property 'value' of object '[object Object]
- tranary operator in js
- reverse every word
- redux action to hit api and assign data in stateless component
- gatsby underline link if page is active
- Node Sass could not find a binding for your current environment
- jquery-3.5.1.min.js download
- find longest word in string javascript
- jsx in emmet