Home › Forums › Quform WordPress › Problem set the value with javascript
Hi, we are using your form creation tool and tries to set a value with a javascript that we have made ourselves. We have made a
<input type="text"> with the form: <input type="text" id="quform_3_9_8fe75d" name="quform_3_9" class="quform-field quform-field-text quform-field-3_9" value="0">
We are trying to set the value with the javascript below but it’s not working. Do you have any ideas?
` function setValue(val){
var value = val; document.getElementById(“quform_3_9_8fe75d “).setAttribute(‘value’,val);
}
`
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.