and operator with document.getelementbyid code example Example: get element by id in javascript document.getElementById("YourElementId");