Title: FIRE JAVASCRIPT OPTION NOT WORKING
Last modified: August 16, 2022

---

# FIRE JAVASCRIPT OPTION NOT WORKING

 *  [monicaamb12](https://wordpress.org/support/users/monicaamb12/)
 * (@monicaamb12)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fire-javascript-option-not-working/)
 * How’s working the option of ‘Fire JavaScript’?
 * I have a code but it doesn’t working:
 * const envio = document.querySelector(‘#enviar’);
    const textoLibre = document.
   querySelector(‘#hello’);
 * function texto() {
    textoLibre.textContent = ‘Hola’; }
 * envio.addEventListener(‘click’, texto);`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffire-javascript-option-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘FIRE JAVASCRIPT OPTION NOT WORKING’ is closed to new replies.

 * ![](https://ps.w.org/wpcf7-redirect/assets/icon-256x256.gif?rev=3416723)
 * [Redirection for Contact Form 7](https://wordpress.org/plugins/wpcf7-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpcf7-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpcf7-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/wpcf7-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpcf7-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpcf7-redirect/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [monicaamb12](https://wordpress.org/support/users/monicaamb12/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/fire-javascript-option-not-working/)
 * Status: not resolved