When using id selectors in jQuery, you will get back all elements that have that id. code example Example: get element by id jqueryt $( "#myDiv" )