jQuery( "#selector" ).addClass( "selected highlight" );
can be written as
document.getElementById('selector').classList.add( "selected", "highlight" );
or as
document.querySelector('.selector').classList.add( "selected", "highlight" );
jQuery( "#selector" ).addClass( "selected highlight" );
can be written as
document.getElementById('selector').classList.add( "selected", "highlight" );
or as
document.querySelector('.selector').classList.add( "selected", "highlight" );