jquery get elementbyid code example Example 1: get element by id jqueryt $( "#myDiv" ) Example 2: jquery equivalent of document.getelementbyid var target = $("#myID").get(0);