Updated
Actually, you have to trigger change
event to activate the Save button. WordPress widget handler listens to only changes. When you update the input field value with JS, DOM doesn’t trigger any change
. That’s why we have to trigger manually. Please check the following code –
$('.deo-' + type + '-hidden-input').val(attachment.url).trigger('change');
Related Posts:
- Limit number of Widgets in Sidebars
- How to load Widget javascript + css files only if used?
- check if registered sidebar is active & has widget content
- Adding iframe Content to Sidebar Widget
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Storing custom dashboard widget options in wordpress
- Programmatically edit the text of a widget
- Video Embed in Sidebar Widget with Links to Others in Category
- How can I whitelist only specific shortcodes for processing in text widgets?
- Bookshelf plugin and/or widget [closed]
- Create a Widget Area in the Navigation Bar for the Genesis Theme Framework?
- Manual display of widget
- Add a banner to the Dashboard
- Customized widget area – how to override or filter class xoxo?
- How to access widget data from outside widget?
- How to add a description to Widgets?
- add_page_menu to make shortcut to widgets
- Custom Menus, Widgets & Conditional Statements
- Dynamic widgets
- How do I stop a widget from displaying on mobile site?
- cannot drag and drop widgets since wordpress 3.2.1
- Change recent posts widget title
- Color Picker Showing Twice When Widget Added to Sidebar
- Wp Customizer event for when a new widget has been added
- Sidebar not show customizer!
- Customizing wordpress default widgets?
- different class (css) for sidebar widgets
- Adding widgets with Featured Image via the Customizer run hundreds of queries
- How to make this change without changing the core? [duplicate]
- Add pagination to listing plugin
- how to put functions inside of widgets
- Adding a Widget : what to put in plugin URL
- How to list all custom post types in a custom widget?
- How can I assign widgets from WP to appear in bbpress?
- get_option returns undesired blank instance of a widget
- How to extend WP_Widget_Media
- escaping and sanitizing input for custom widget form fields
- Global $wpdb is not showing correct data with function call
- Dynamic created widget id value of multi-instance in jQuery
- Color picker in widget appears twice when added via the Customizer
- Hide widget (and white space) on specific resolution [closed]
- Adding Widgets to Draft Pages
- How to select multiple media files for a widget form?
- Widget – link to page rather than absolute url
- Apply code for all else first block
- Programmatically add widgets to sidebars
- Are widgets meant to be used outside of sidebars?
- Is there a WordPress widget for my webpage?
- FTP Widget Location
- Inserting Read More Tag in Widget
- dynamic sidebar in front page
- Display posts from category in post content?
- How to change “Call To +1800090098” in TopStore pro theme [closed]
- How to dynamically add the the input text field in widget?
- Header Sidebar Won’t Move Lower – Want to Align with Header Logo [closed]
- display widget checkbox selection on frontend
- Enabled checkbox by default in WordPress widgets
- Is there a way to use get_sidebar() when no widgets are activated?
- Making jQuery .change() event persistent after widget save
- Widget background images missing on second blog excerpt page
- How should I add a “widget” like element?
- modifying title (in dashboard) for different widget instances
- How to translate Widget Description in constructor?
- What conditional to use for dynamic sidebar check?
- Adding a single text input field to a custom Dashboard widget
- How to test if the widgetized area has any widgets?
- Saving widget gets an undefined variable
- Trouble accessing a multidimensional array to add classes to default WordPress widgets
- Distinguish between different widgets of the same type
- links to Media Library content in sidebar per page
- Why is registering a sidebar for each page causing my sidebars to reset?
- How do I customize the positioning of WordPress widgets?
- Limit archive widget results
- How can I detemine the parameters needed by the_widget()?
- Quick Draft widget in weird place on dashboard after being re-added
- Fatal error: Uncaught Error: Class ‘WP_Widget’ not found
- Array showing all values of loop instead of specific value to post
- Remove widgets on mobile front page without affecting desktop
- Widget display nothing
- How can I have sidebar widgets on Twenty Seventeen theme on all pages?
- Collapsible widgets [closed]
- Loop through Widgets in sidebar using widget array number?
- How to display author meta in a sidebar widget
- Is it ok not to set widget in the main page of a one page WordPress Theme?
- How to get widget content in WordPress based on it’s ID?
- Recent Posts Widget URL / Domain change
- New Custom Widget Call a Different Widget Function
- Loading scripts only if a particular shortcode or widget is present
- Always show the widget title in a wordpress widget
- Custom php Widget keeps disappearing from the front end
- Display Posts by Views (Popular Posts Widget)
- Default WordPress widgets always appear
- Insert to wp_footer if widget is found in the sidebar
- Using javascript on the new widget preview / customizer page
- Show editor widgets only on pages that use a specific template?
- Conditionally enable autoplay when using oEmbed in a custom widget
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- WordPress Hide Widget If $_Session Is Active?
- Recent posts with different class name for each post and a scrollbar?
- Classic widgets with 5.9+?