document.getElementById('popoverContent').style code example Example: getelementbyid document.getElementById("someid");