You are here

Synchronize to select option with click simulation

var selectedState = $('#field_state').find(":selected").text();
    $('#edit_profile_page #tab3selector a').on('click', function () {
        $('#html_state option[value="' + selectedState + '"]').trigger('change');        
    });
code type: