I know that you can call a certain form element to focus using JavaScript, which for some reason makes me feel like it shouldn't be hard to achieve my task. As part of a function, I want to leave the user with the contents of a particular div selected (so that they can easily copy it with control-c).
In case it matters, the div contains content besides pure text (i.e. it contains the following two spans):
<span style="font-weight:bold; text-transform: capitalize;" id="part1"></span><span id="part2"></span>
No jquery, please.