资 源 简 介
jQuery.selectSubStr( settings )
settings set of key/value pairs that set start & end position of the character string. All settings are optional.
start: The start position of the selection. First character is at index 0. Default: 0
end: The end position of the selection. If omitted, it extracts the rest of the string.
default: {start:0, end:[ remaining length of string ]}
The $.selectSubStr()function allows for chainability but will only operate on the first input or textarea in the element stack.
example : This will select "ipsum dolor sit amet" ( characters 6 - 26 ) from the first textbox element then change the border for all textboxes.
&