I am trying to accomplish the following. It needs to be done this way because of certain environmental/system requirements.

I have this type of element:

```
<body> ....
<script type="disabled" id="1" class="someclass" >
  console.log("fire this");
</script>
...
</body>

```

I want to be able to change the type of the element to "text/javascript" and then execute the code within the script.

For instance like this:

```
<script type="text/javascript">

var el = document.getElementById("1");
el.setAttribute("type", "text/javascript");

...execute code within el if some precondition.....
</script>

```

Can this be done?