Title: Attaching Javascript events to slideshow elements
Last modified: March 22, 2021

---

# Attaching Javascript events to slideshow elements

 *  Resolved [Insurteched](https://wordpress.org/support/users/jeyjoo/)
 * (@jeyjoo)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/)
 * Hi,
    I have two forms on a page (teal background). Both have javascript events
   attached so for example when the user types in the input field:
 * – non numeric characters are removed
    – the placeholder drifts above where the
   user is writing.
 * This works on the second form, but the javascript events are not attached to 
   the elements in the slider. I suspect this has something to do with dom loading
   order, but cannot work out exactly how to fix.
    Does anyone have a suggesiton?
   Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fattaching-javascript-events-to-slideshow-elements%2Fpage%2F2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 16 through 19 (of 19 total)

[←](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/?output_format=md)
[1](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/?output_format=md)
2

 *  Thread Starter [Insurteched](https://wordpress.org/support/users/jeyjoo/)
 * (@jeyjoo)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/page/2/#post-14285093)
 * Ok, thank you. Would I be able to see you testing page? I would like top understand
   the load order of the scripts.
    Thanks
 *  [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/page/2/#post-14285206)
 * Hi,
 * It’s a local installation with only MetaSlider and Twenty Twenty One active.
 * I did nothing special, just the steps that I shared with you previously.
 * I recorded a video showing the code and how the slider works:
    [https://drive.google.com/file/d/1CJzTp7jW_1syDZCzWg-amwI3ZQ0pP86o/view?usp=sharing](https://drive.google.com/file/d/1CJzTp7jW_1syDZCzWg-amwI3ZQ0pP86o/view?usp=sharing)
 *  Thread Starter [Insurteched](https://wordpress.org/support/users/jeyjoo/)
 * (@jeyjoo)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/page/2/#post-14286317)
 * OK. well thank you anyway for the help, very kind of you.
    I will get back to
   you if I find the solution or conflict.
 *  [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/page/2/#post-14287235)
 * Hi,
 * I wish I could help you and I will be waiting for your reply.

Viewing 4 replies - 16 through 19 (of 19 total)

[←](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/?output_format=md)
[1](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/?output_format=md)
2

The topic ‘Attaching Javascript events to slideshow elements’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3568997)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

 * 19 replies
 * 2 participants
 * Last reply from: [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/attaching-javascript-events-to-slideshow-elements/page/2/#post-14287235)
 * Status: resolved