jquery element by class code example Example 1: get element by id jqueryt $( "#myDiv" ) Example 2: jquery select element with class $('.classid')