Question for you here, I'm trying to add an attribute to a tag here, wondering if I can use a BeautifulSoup method, or should use plain string manipulation.
An example would probably make this clear, as it's a weird explanation.
How the HTML Code looks now:
<option value="BC">BRITISH COLUMBIA</option>
How I would like it to look:
<option selected="" value="BC">BRITISH COLUMBIA</option>
Thanks for the help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…