Support

Account

Home Forums Backend Issues (wp-admin) Get the saved value from a dynamically loaded Select field using JavaScript API Reply To: Get the saved value from a dynamically loaded Select field using JavaScript API

  • To get the value of the field

    1) Return the current value for the post being shown as part of the AJAX response you are already doing.

    2) Use wp_localize_script() to set the current value in a JS var so that you can access it.