Problem set the value with javascript

Home Forums Quform WordPress Problem set the value with javascript

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26060
    mrvintervind
    Participant

    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);

    }

    `

    • This topic was modified 5 years, 10 months ago by mrvintervind.
    • This topic was modified 5 years, 10 months ago by mrvintervind.
    Attachments:
    You must be logged in to view attached files.
    #26100
    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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy