Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: File Upload plugin: how to reset <input type = “file”>

gkpsoriana free asked 5 years ago


Hi there, I want to reset the contents of my file input programmatically:

Descripción

How should I do that?

Thanks


gkpsoriana free commented 5 years ago

This answered my question: Anna Morawska staff answered 7 days ago 0 0 Hi there,

you can simulate a click event like this:

document.getElementsByClassName('btn btn-sm btn-danger')[0].click() Best,

Ania



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.6.0
  • Device: MacBook Pro
  • Browser: Google Chrome Version 72.0.3626.
  • OS: macOS Mojave Version 10.14.3
  • Provided sample code: No
  • Provided link: No