same function for two classes in jquery code example
Example 1: jquery select element with two classes
$('.class1.class2') // select element that has both class1 and class2
Example 2: how to add two classes in jq
$("p").addClass("myClass yourClass");