Trying to grab the html of an input element within a set of input elements. All of them have the same name, but different html and values. How can I grab the html from an input with a value of theme and a value equal to some number between 1-9?
Example:
<input type="radio" name="theme" value="1" checked> Option 1<br>
<input type="radio" name="theme" value="2"> Option 2<br>
<input type="radio" name="theme" value="3"> Option 3<br>
<input type="radio" name="theme" value="4"> Option 4<br>
<input type="radio" name="theme" value="5"> Option 5<br>
<input type="radio" name="theme" value="6"> Option 6<br>
<input type="radio" name="theme" value="7"> Option 7<br>
<input type="radio" name="theme" value="8"> Option 8<br>
<input type="radio" name="theme" value="9"> Option 9<br>
Random scenario, I need to grab the html of the input with the name=theme and value=4, i.e. "Option 4".
Thanks everyone!