Text Input field backgroud colour (Javascript)

Home Forums Quform WordPress Text Input field backgroud colour (Javascript)

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Ally 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29639

    kk
    Participant

    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.

    #29653

    kk
    Participant

    For those who still it, please use below code to update the backgroud colour:

    document.querySelector(‘.quform-field-*_*’).style.backgroundColor

    #29659

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy