How do you hide a Panel?
What we would like to do is hide an entire panel of a tab in one go but I can't seem to target them.
For example, to hide the 'Scheduled End Date' we use this:-
var ScheduledEndDateLabel = $(".form-group label[for='ScheduledEndDate']"); var ScheduledEndDateWrapper = ScheduledEndDateLabel.next(); ScheduledEndDateLabel.hide(); ScheduledEndDateWrapper.hide();
We would like something similar to hide a whole panel (such as the 'Knowledge Article' panel on the Related Items tab) if somebody could help?
TIA
Best Answer
-
Tom_Hendricks Customer Super IT Monkey ✭✭✭✭✭Try this:
$("div.panel-heading:contains('Knowledge Article')").parent().hide();
The bolded text is the exact text in the header for that panel. This appears to be the only way to distinguish them with code, other than counting.
5
Answers
$("div.panel-heading:contains('Knowledge Article')").parent().hide();
The bolded text is the exact text in the header for that panel. This appears to be the only way to distinguish them with code, other than counting.