want to extract the value of value attribute in the code below by it's inner text using javascript.
<label for="played-123">
<input id="played-123" name="players[]" type="checkbox" **value="123"**>
<img class="team" src="teams/abc.png" alt="abc"> Abc Xyz</label>
Here is what I want to extract from above html 123.
Any help will be appreciated. Thank You.