I am trying to apply a style to a <ul> element, but I cannot give the <ul> a class because of the way the script is written. There is an <a> tag directly above this which has a class.
Is there a way I can give the <ul> a class or style based on the <a> class?
This is what my code looks like:
<a class=“myclass”></a>
<ul>
<li>
So, I want to style the <ul> without giving it a class.