Get value from text on page and set to Hidden Field ID

Home Forums Quform WordPress Get value from text on page and set to Hidden Field ID

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9169
    kemiga
    Participant

    I have a input field that the user can make a search to see if a domain is registered or not.
    The output will then show the domain in <span id=”domain””>example.com</span>

    I am trying to get the value from:

    <span id="domain"">example.com</span>

    and then pass it to a hidden field already created in the administration within a HTML box:


    <div id="domain"></div>
    <script>
    jQuery(document).ready(function($) {

    //get
    $("#domain").text();

    //set
    var value = $("#domain").val();
    $('input[name="iphorm_5_45"]').val(value);

    });
    </script>

    I can’t get it to work. Do you have some ideas on what’s going wrong or even a better idea to achive that?

    #9174
    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.

    #9191
    kemiga
    Participant

    I’ve sent you an e-mail..

    #9197
    kemiga
    Participant

    Did you read my e-mail??

    #9208
    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 5 posts - 1 through 5 (of 5 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