How do I hide a multi-select Customfield using javascript?

Smruti Panda January 29, 2012

The entire HTMLdivElement is desired to be hidden. I am able to get only the options and hide them.

For ex.

var x=document.getElementById('customfield_10001-1').parentNode;

x.style.display='none';

Is there anything similar for the entire multi select div element?

1 answer

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2012

AJS.$("#customfield_10001").closest('div.field-group').hide()

Suggest an answer

Log in or Sign up to answer