Can anyone help me to set top position for $myClass before and after. Below is my code that I tried.
var $myClass = $(".myclass");
$myClass.filter(":before,:after").css("top",-23); 
Can anyone help me to set top position for $myClass before and after. Below is my code that I tried.
var $myClass = $(".myclass");
$myClass.filter(":before,:after").css("top",-23); 
 
    
    Try appending a style element to document , including properties , values for .myclass:before , .myclass:after at style text
$("<style>", {"text":".myclass:before,.myclass:after{top:-23}"})
.appendTo("body");
 
    
    