'Show / Hide div based on current user meta data

I have created div to specific wordpress page; <div id="section1">[ninja_form id=23]</div> and now I would like to show/hide that div based on current user data using javascript because I don't know how to code php.

If current user meta field card is empty: show div, else: hide div.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source