Answers for "how to trigger image upload button in from another button react js"

0

how to trigger image upload button in from another button react js

upload() {
  document.getElementById("selectImage").click()
}

<div style={{display: 'grid'}}>
  <button id='plus' onClick={this.upload}>+</button>
  <input id='selectImage' hidden type="file" onChange={fileSelectHandler} />
</div>
Posted by: Guest on February-27-2022

Code answers related to "how to trigger image upload button in from another button react js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language