document.getElementById('#content_2') code example Example: getelementbyid document.getElementById("someid");