Skip to content

UI Show hide programmatically a message below a field in a dialog

Victor Tomaili edited this page May 3, 2021 · 1 revision

Show/hide programmatically a message below a field in a dialog

private jQueryObject customDiv = J("<div style='text-align:center;color:red'>MY_CUSTOM_TEXT</div>");
// show
customDiv.AppendTo(form.MyField.Element.Closest(".field"));
// hide
customDiv.Remove();
Clone this wiki locally