Change outer ul background color when inner li has a class=”selected”

i have some menus with unordered list (ul)

<ul class="myul">
<li>Button1</li>
<li>Button2</li>
<li class="selected">Button3</li>
<li>Button4</li></ul>

<ul class="myul">
<li>Button5</li>
<li>Button6</li>
<li>Button7</li>
<li>Button8</li></ul>
and so on...

how i can change with jQuery the background color of outer “ul” when the inner “li” has class=”selected”?

thanks in advance.