Tips & Tricks

stixoffire edited this page Dec 13, 2016 · 7 revisions
Clone this wiki locally

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();