| Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > AddSelection | 
Adds a selection.
[JavaScript]
FpSpread1.AddSelection(row,column,rowcount,columncount);
None
This method is similar to selecting cells with the mouse.
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
| JavaScript | 
                     
                        Copy Code
                     
                 | 
            
|---|---|
                    <SCRIPT language=javascript> function addSelRanges() { FpSpread1.AddSelection(0,0,1,1); // adds a selection FpSpread1.AddSelection(2,2,1,1); // adds another selection } </SCRIPT>  | 
            |