This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Get a reference to the chief approve drop down box*/ | |
var chiefApprove = document.querySelector("[id^='ChiefDocumentApproval']"); | |
/*Attach an onchage event to drop down*/ | |
chiefApprove.onchange = function(){ | |
/*Grab the selected value*/ | |
var aValue = chiefApprove.options[chiefApprove.selectedIndex].value; | |
/*Show and hide feedback field based on the selected value*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chiefFeedback = document.querySelector("[title='Chief Feedback']"); | |
chiefFeedback.parentNode.parentNode.parentNode.style.visibility = "hidden"; |
NewerOlder