<span class="grandparent">
<span class='parent'>
<span id="popUP" class="child1">
Some content for popUP
</span> <!-- 1st child has width of 390px-->
</span>
</span>
Let's explore different options by replacing the child span tag with new tags as shown below.
option A) <span id="popUP" class="child2"></span>
<!-- 2nd child has popUP width of 550px-->
option B) <span id="popUP" class="child3"></span>
<!-- 3rd child has popUP width of 450px-->
option C) <span id="popUP" class="child4"></span>
<!-- 4th child has popUP width of 350px-->
Is there a way to dynamically change the width of the popup using JavaScript or jQuery? I attempted to use the .find()
method without success.