jquery selected option add class code example Example: addclass jquery $( "p" ).addClass( "selected highlight" );