Hello Hardik,
I would recommend using the document.getElementById() function but instead of getting the field's id I would grab the
tag that the field is in. That way you can show and hide the section instead of just that element.
I hope this helps.
Please let me know.
Thanks,
Ryan