jQuery.Range  class     

tags: alpha

Provides text range helpers for creating, moving, and comparing ranges.

Constructor

Returns a jQuery range object.
new $.Range(range) -> jquery.range
{optional:TextRange|Node|Point}

An object specifiying a range. Depending on the object, the selected text will be different. $.Range supports the following types

  • undefined or null - returns a range with nothing selected
  • Node - returns a range with the node's text selected
  • Point - returns a range at the point on the screen. The point can be specified like:

    //client coordinates
    {clientX: 200, clientY: 300}
    
    
    //page coordinates
    {pageX: 200, pageY: 300} 
    {top: 200, left: 300}
    
  • TextRange a raw text range object.

{jquery.range}
© Jupiter IT - JavaScriptMVC Training and Support