Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Apex 20.1 - jQuery - How to reference html element in modal window

Leon_MJun 23 2020 — edited Jun 24 2020

Hello,

We upgraded to Apex 20.1 recently and have multiple failures in our JavaScript functions.

One of them is a failure to reference elements in a jQuery modal window.

For example, we used following code before to reference a button in modal window:

parent.$('button.js-confirmBtn').addClass("some-class");

This does not work anymore in Apex 20.1

We also tried just: $('button.js-confirmBtn') without parent. It does not work either.

Can someone explain why? What have changed?

And what would be correct way to reference html elements in a modal window?

Note: Our function is in external Js file.

Thank you!

Message was edited by: Leons

This post has been answered by Keyser on Jun 24 2020
Jump to Answer
Comments
Post Details
Added on Jun 23 2020
7 comments
849 views