I want to be able to publish some legal opinions, and give the user the ability to select some of the text of the opinion, and then click a button, and the correct citation would come up. Basically legal citations have to refer to the published page number of what is being quoted. Here's an example of what I am trying to do:
<input type="button" value="Click for citation" onclick="AlertCitation()">
Here is some legal text that is on page 571, and
here is some legal text on page 572
After the user has selected some text, they would click the button, and an alert would come up and give the page number(s) of the text they selected. Can anyone help me with this. I know I could probably do this with text areas, but that would probably be a pain to set up on a regular basis.
Thanks in advance,