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:
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)
}