Home Forums Plugin Support WP User Frontend Pro get dropdown selected from Action Hook

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 3 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #72867

    Paris M
    Member
    Post count: 7

    Is it easy to help me how I can get the saved field from database, which operates through javascript arrays

    <select name="state" id="state" onchange="setCities();" required>
        <option value="<?php echo esc_attr( $value2 ); ?>" selected><?php echo esc_attr( $value2 ); ?></option>
    </select>
    
    <script>
    var state = new Array();
    state['New York'] = new Array('city1','city2','city3');
    state['Canada'] = new Array('city1','city2','city3');
    ....
    ....
    </script>
    #73538

    towhid
    Participant
    Post count: 4505

    What you are trying to do?

    Are you trying to get value from database and populate those data into JavaScript?

    Thanks

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

The topic ‘get dropdown selected from Action Hook’ is closed to new replies.