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
  • #72867

    Paris M
    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>
    var state = new Array();
    state['New York'] = new Array('city1','city2','city3');
    state['Canada'] = new Array('city1','city2','city3');

    Post count: 4505

    What you are trying to do?

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


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

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