DOM alternative
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 09:02 PM
Can anyone suggest replacement functions for DOM manipulation technique (e.g. gel, document) in Client script.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
g_form.getReference('u_source_cost_center', applyCostCenterStyle);
function applyCostCenterStyle(cost_center) {
if (cost_center.u_active == 'true')
return;
try {
var elementID = gel('sys_display.' + g_form.getTableName() + '.' + 'u_source_cost_center');
elementID.style.color = "red";
} catch (ex) {}
}
}
0 REPLIES 0