Menu icon Foundation
jQuery functions within reveal modal windows?

Hi.

How do I get a jQuery function to execute inside a modal popup windows?

modaljquery

Hi.

How do I get a jQuery function to execute inside a modal popup windows?

Bob Sawyer about 4 years ago

Hey Jon, can you be a little more specific? Are you trying to execute a function that affects the code inside the modal, or are you trying to execute the code from within the modal (i.e., by clicking a button inside the modal)?

jon about 4 years ago

I am trying to get a function to work that will display an instagram image inside the modal.

jon about 4 years ago

I figured it out. I wasn't targeting the DIV within the modal for the function to work on it.

Bob Sawyer about 4 years ago

Ha! We posted at the same time. I had this long-winded, code-laden example, but if you figured it out, that's cool. :D