I’m trying to disable a button inside of a form region in Oracle Application Express (Apex v3) in an ajax-ified manner. I’m using jQuery to accomplish the ajax part.
$('#P16_MYBUTTON').hide();
Doing a view source on the rendered page I noticed that the button doesn’t have an ID even though in Apex I’ve given it a name. I scanned through the rest of the code and noticed that other elements do have an ID. This behavior is somewhat confusing to me.
Any ideas?
Apex 4.0 does assign an ID to each button automatically. In Apex 3.x you can assign one yourself via the button’s Attributes property:
If the button is an HTML button then that is sufficient to make it work; if the button is based on a template then you need to ensure that the template definition contains the #BUTTON_ATTRIBUTES# substitution string in an appropriate position – for example: