Skip to Main Content

Intelligent Advisor

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!

OPA Cloud & JQuery

ouwais.chaouiJul 2 2015 — edited Jul 7 2015

Hi Folks,


I'm using Cloud Edition February 2015.

I am trying to use JQuery on the interview generated by OPA and I would like to know how to identify the containers and labels HTML.

I already noticed that for the attributes, a specific id is created for the tags using the name of that attribute:

For example, If I create a text attribute called "postal code" with a name : user_zipcode,

the generated <input> tag has a specific id containing the name of the attribute : global_global_a_user_zipcode

<input type="text" style="max-width:250px" id="global_global_a_user_zipcode" name="global_global_a_user_zipcode" value="" size="35"

class="owd-input" aria-invalid="false" aria-hidden="false" aria-disabled="false" aria-required="true" aria-labelledby="lbl-global_global_a_user_zipcode"

aria-describedby="msg-global_global_a_user_zipcode">

Unfortunately, I can't give a name to labels and containers. Thus, the ids of the related tags are automatically generated and can't be manipulated with JQuery:

Ex: a container's HTML

<div id="cd-qsbad771ce-b902-44c8-b3c8-bce8ffecc88cglobalglobal2" class="opm-container" style="width:100%;"></div>

Is there a way to give to each container or label a specific name so we obtain a unique id in HTML ? If not what is the best way to obtain that.

Cheers,

This post has been answered by ouwais.chaoui on Jul 7 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2015
Added on Jul 2 2015
3 comments
805 views