Hide/Display Panel Depending on Drop Down Value

Any idea on how to display or hide a Panel in Edit view depending on the value selected from a dropdown.

By adding Custom JS in Editviewdefs.php and calling onchange function on Dropdown field.

Thanks.

Added to view.edit.php file tho