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!

Change button label dynamically but label shows as text instead of HTML

seanzh13 hours ago

Hi, all,

Our Apex is 24.2.11,

I have a button and I want to show our users the number of basket items as a superscript, please see photos. Label shows fine during page load, but it only shows as text instead of HTML during DA update (photos), any suggestions? Thank you!

// basket add dialog close event 
let label='<span class="t-Icon t-Icon--left fa fa-shopping-basket" aria-hidden="true">';
let count=apex.item("P12_COUNT").getValue();
label=label + '<sup>[' + count+ ']</sup></span>';

$("#P12_BK_ID").text(label);

This post has been answered by Pothiarun Kannan on Dec 16 2025
Jump to Answer
Comments
Post Details
Added 13 hours ago
2 comments
54 views