The first thing I notice is the beginning of your plugin:

var e = (typeof this.id == 'function') ? this.get(0) : this;

could be replaced with

var e = this.jquery ? this[0] : this



On 12/16/06, Alex Brem <[EMAIL PROTECTED]> wrote:

Hey jQuery lovers,

I coded a small plugin to retrieve the caret position and the current
selection index of input fields and textareas.
Special treatment for such an simple thing is needed because MSIE
doesn't support the easy DOM 3.0 methods (yes, this also applies to IE7
*sigh*).

So here's the plugin and a small test case:

http://lab.0xab.cd/jquery/fieldselection/

Please note that the plugin is a little rough and not very jQuerish at
the moment - mainly because I don't know if this is useful for anyone
else. If so, please gimme some feedback. Oh, and there's also a lack of
documentation. :)

Greets,

Alex

--
http://www.kwick.de - KWICK! Community

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to