# ClearSelection

Use the ClearSelection method to clear all the selections in the display. Learn its syntax and parameters in documentation.

## Content

Clears all the selections in the display.

## Syntax

[JavaScript]

```javascript
FpSpread1.ClearSelection();
```

## Parameters

None

## Return Type

None

## Remarks

This method changes the display on the client so that no cells are selected. This method does not cause a postback to occur.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function removeSelRanges() {
      FpSpread1.ClearSelection(); // clears all selections in display
   }
</script>
```

## See Also

[Clear](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-Clear)
[Delete](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-Delete)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)