How to change text of button span in Siebel Open UI via jquery
Hello,
I have an applet that has a button. Depending on the value of the field, I would like it to say one thing or another. For example, it should say either "Respond" or "Edit Response".
I am able to get the value of the field fine. However, in my js file, I am not able to get the text of the button to change.
When I inspect element, it says:
<button type="button" class="siebui-ctrl-btn siebui-icon-editresponse s_1_1_126_0 appletButton" id="s_1_1_126_0_Ctrl" name="s_1_1_126_0" data-display="Edit Response" tabindex="0" title="Request: Main Menu:Edit Response" aria-label="Request: Main Menu:Edit Response" data-seq="0"><span>Edit Response</span></button>