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,