Created
March 16, 2017 13:15
-
-
Save pranali333/f2e18b03464ed8fcdbba5f2e836f384d to your computer and use it in GitHub Desktop.
Custom JavaScript code to set the value in the custom hiddenfield under rtMedia uploader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( function () { | |
$custom_dropdown = jQuery( '#custom_dropdown_list' ); | |
$custom_input = jQuery( "#custom_media_type" ); | |
$custom_input.val( $custom_dropdown.val() ); | |
$custom_dropdown.on( 'change', function() { | |
$custom_input.val( $custom_dropdown.val() ); | |
} ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment