Question: ```
1-A
2-B
3-C
Etc etc

```

Please help me writing the function.

Answer: 
One way to achieve this is to have a variable to store whether it is *clickable* or not. Please check snippet. 

```js
var canDoStuff = true;

function disable() {
   canDoStuff = false;
}
function enable() {
   canDoStuff = true;
}

function doStuff(){
  if ( !canDoStuff ) return; /* Do nothing if canDoStuff == false */
  alert( "Doing STuff" );
}
```

```html
<p id = "a" onclick = "doStuff()">Textextextext</p>
<p onclick = "disable()">disable the first p</p>
<p onclick = "enable()">enable the first p</p>
```
To disable, you can use

```
document.getElementById(id).style.pointerEvents="none";
document.getElementById(id).style.cursor="default";

```

To enable

```
document.getElementById(id).style.pointerEvents="auto";
    document.getElementById(id).style.cursor="pointer";

```