UI Show hide programmatically a message below a field in a dialog - serenity-is/Serenity GitHub Wiki

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();
⚠️ **GitHub.com Fallback** ⚠️