title: getting selected text in an input field in IE8 and above
body: <p>How do I get the selected text in an input field in IE8 and above versions. I have tried using <code>window.getSelection()</code> <code>document.getSelection()</code> and <code>document.selection.createRange().text</code>. Last one is returning empty string and the others are undefined in IE8.</p>