I have an unordered list with 5 lists and I have 5 buttons so when I click one button 1 text should change but I don't know how to do it so I needed help and wanted to ask if someone can help me please.
Here is the html code that I have right now.
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<div id="container">
<ul>
<li>
<img src="gta.jpg" width="250" height="250">
<h3>
<a href="https://www.youtube.com/watch?v=GCFR26D5ofA" target="_blank" class="name">BOOM AND DOOM</a>
</h3>
<p>
By: Zerkaa
</p>
<span>
129,702 views - 2 months ago
</span>
<button class="clicked">Change</button>
</li>
<li>
<img src="gta.jpg" width="250" height="250">
<h3>
<a href="https://www.youtube.com/watch?v=yw3tTTIZyf4" target="_blank" class="name">CLOWN DEATH RUN</a>
<h3>
<p>
By: KSI
</p>
<span>176,977 - 3 months ago</span>
<button class="clicked">Change</button>
</li>
<li>
<img src="gta.jpg" width="250" height="250">
<h3>
<a href="https://www.youtube.com/watch?v=0EXLxuosFAc" target="_blank" class="name">BREACH WALL ADVENTURE</a>
<h3>
<p>
By: MM7GAMES
</p>
<span>135,782 - 4 months ago</span>
<button class="clicked">Change</button>
</li>
<li>
<img src="gta.jpg" width="250" height="250">
<h3>
<a href="https://www.youtube.com/watch?v=jBjknMuFt7A&list=PLu1nstonJHbQGN0kQJ-UFrMDc9fwMpeIS&index=3" target"=_blank" class="name">FINISH LINE TUNNEL</a>
</h3>
<p>
By: W2S
</p>
<span>
104,169 views 5 months ago
</span>
<button class="clicked">Change</button>
</li>
<li>
<img src="gta.jpg" width="250" height="250">
<h3>
<a href="https://www.youtube.com/watch?v=ukxhgumzKG4&list=PLu1nstonJHbQGN0kQJ-UFrMDc9fwMpeIS&index=7" target="_blank" class="name">INSANE MOUNTAIN RAMP</a>
</h3>
<p>
By: TBJZL
</p>
<span>
181,137 views 6 months ago
</span>
<button class="clicked">Change</button>
</li>
</ul>
</div>
<script src="objects.js"></script>