Home › Forums › Quform WordPress › Text Input field backgroud colour (Javascript)
Hi,
Recently I tried to use javascript to set default value of input text field with below code , it working fine.
document.querySelector(‘.quform-field-*_*’).value
at the same time, I tried to set text input field background colour with below code but failed.
document.querySelector(‘.quform-field-*_*’).color
Please advise what is the correct code to set text input.
Thanks.
For those who still it, please use below code to update the backgroud colour:
document.querySelector(‘.quform-field-*_*’).style.backgroundColor
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.