Skip to content

Tag: javascript

How to get .load() working within .each() loop?

I’m modifying a bit of code I found here from this question. I am trying to get it working now for multiple instances of a video. This is the only way I can get it working but I would like to make it work for each instance that there is a video which changes on each page this applies on.

cant change the backgroud after updating the hook

i have a hook that holds number (as index) and array of images: i made two buttons that hold onClick event that should change the background to another image (by index): and the functions: by this the hook (currentIndex) should change and display the next image but its not working. what am i missing? this is …

Make first letter of TEXT INPUT uppercase [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 months ago. Improve this question Im new to JS but I think the post title does its job. From what i saw by googling this prob…

Attach event not working when click on child

I have some dynamically added elements. I want to attach ‘click’ event on a specific class. But the problem is if I click on the child element it’s not working. Here is my dynamically added elements. Here is my javascript code: Answer Maybe the target is a child element of the “step-de…