I am trying to use a JS code to fill up elements with their already filled up values as desribed in the table link image below:

[![enter image description here](https://i.stack.imgur.com/0LrYN.png)](https://i.stack.imgur.com/0LrYN.png)
For this code below, what modifcation will be required to get the desired final value?

```
var data = document.querySelectorAll("[id^='1253']").forEach(x => x.value
if( data > 0){
  var result = '(' + data + ')'
  document.querySelectorAll("[id^='1253']").forEach(x => x.value = result)
}

```