Our task is to modify the URL of the image for the second and third elements within an ordered list using jQuery without converting the list to an unordered list. We are looking for a solution to specifically target and modify the class or image of these two list items.
<div class= "image-gallery">
<ol class ="image-control image-flex-control">
<li> <img src="URL"> </li>
<li> <img src="URL1"> </li>
<li> <img src="URL2"> </li>
</ol>
</div>
We specifically need to update the src attribute for the second and third items in the list. How can we achieve this using jQuery?