Got it working......
This is what I did. If there is a better way of doing this, please let me know.
if (approval_note_subform.presence == "hidden") {
approval_note_subform.presence = "visible";
}
else if (approval_note_subform.presence == "visible") {
approval_note_subform.presence = "hidden";
}