I am trying to set the width of the div equal to another div. I have been tried the various function as below but it is not working. Please help me, How I achieve the goal.
.myclass:before {
width: $("div.mydivclass").width();
}
$(".myclass:before").css('width', $("div.mydivclass").width());