I would like to know how I can make a class in JavaScript type dot using CSS properties.
This is the CSS code that I have in HTML:
.dot3 {
    height: 25px;
    width: 25px;
    background-color: #FFFF00;
    border-radius: 50%;
    display: inline-block;
}
This is what I am trying in JavaScript:
.dot2 {
    height: 25px;
    width: 25px;
    background-color: #FF0000;
    border-radius: 50%;
    display: inline-block;
}
database.once('value', function(snapshot){
    if(snapshot.exists()){
        var content = '';
        snapshot.forEach(function(childSnapshot){
            var val = childSnapshot.val();
            //content +='<tr>';
            if (val.Distancem2 > 15 &&  val.DistanceMiddle1 > 15 && val.DistanceMiddle3 > 15){
                content +='<div>';
                content += '<span>' +class="dot2"+'</span>';
;
                content +='</div>';
            }
        });
        $('#div').append(content);
    }
});