How to get id from user selected text with jquery?
<p>For example :</p>

<pre><code>&lt;span id=1&gt;this is my &lt;/span&gt;&lt;span id=2&gt;selected text&lt;/span&gt;&lt;span id=3&gt; but this is not selected&lt;/span&gt;
</code></pre>

<p>I want to catch the list of span id of the text selected by user with jquery.</p>

<p>In this example i want : [1,2]</p>

<p>thanks</p>
