I Found the answer for my question , And I’m sharing it here in case anyone interested.
the problem was that click event won’t work on dynamically generated html elements
and the alternative that worked is using on
$('body').on('click','#elementID',Callback)
Related Posts:
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Adding a widget programmatically
- Delete Custom Dashboard Widgets
- How to pass JavaScript variable to PHP in wordpress widget?
- Is dynamic forms/entries possible in Widget?
- How To Add an Extra Field in All WordPress Available Widgets?
- Using the media uploader in a custom plugin
- Has anyone been able to get the aweber plugin to work
- How to create a widget or plugin to add custom content to my website?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- How can I retrieve data within my widget
- How to Get Admin Settings for a widget when using the_widget() with custom widget
- How to unregister a widget from a child theme
- WordPress multiple widget in single plugin
- Setting up widgets in wordpress with a unique ID for the after_title argument
- How to exclude a widget from page 1 of a paginated post
- how can i limit the number of instances for my widget
- Dashboard Widget Form
- Admin Dashboard with Custom Tab for Client
- Is there plugin to show recent posts from one website in the widget area of another?
- Can I use a form in a dashboard widget?
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- I wrote my plugin. How to display the result of the plugin’s function to sidebar (widget?)?
- How to check if you are on widget.php page?
- Theme’s default styles are overriding my plugin’s custom CSS
- Adding widgets to header and footer from plugin
- Rotate Widgets or Content Blocks every x sec/min
- Multi language site [closed]
- How can I disable widget from being visible on some pages?
- Custom random quote widget breaks when used in multiple sidebars
- Hooking in to replace the Sidebar/Widget areas
- Do widget options need to be escaped widget()?
- Ajax contact form widget plugin data not insert in database
- How to hide CSS by default and show on button press
- Which widget to use for display category post with view more? [closed]
- WordPress Widget Not Saving Data
- In the archive widget, how do I sort in between two years?
- Wysiwyg editor errors
- How to add wp visual editor in a custom widget?
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- WordPress Widget – Saving multidimensional arrays into $instance
- Conditional tag in Widget Logic for checking if top level page or if subpage
- Char limit on custom blog-post form? [closed]
- How to add Wrapper Div/container element around WordPress Widget Content
- Disabling plugin but wpenqueue is not available
- Related posts widget or plugin needed
- Problem since update 3.5 [duplicate]
- Call plugin with php function
- How to disable a widget when dependent plugin is inactive?
- How can I delete a wordpress widget instance?
- Saving widget options from class method
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Widget’s container?
- Add SideBar/Widgets Just Below the Post
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- Plugin showing error
- WordPress Widget Not Saving Instance
- How to display a widget on a page with no theme?
- jQuery slider widget similar to cnet.com
- Why aren’t my Follow Me links working?
- Is there any plugin to show number of clicks on the link?
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- co-authors plugin – inline listing
- Widgets are not displaying in the admin panel
- Can I add Short Code Of A Plugin In The Code Editor of WordPress?
- Change language in SiteOrigin Widgets
- elementor development – custom widget like an inner section widget
- Update widget values from ajax function
- The styles in the recent posts widgets plugin not working
- Some Widgets in the Right Side Bar and the whole Footer section is not working in a WordPress Site
- Using foreach loop for `$instance` of form and update array widget iteration
- How to disable a widget area of a specific page?
- One time call to external API in widget
- Widget display in theme
- Registered sidebar area is not shown from plugin.
- Custom content per post in widget
- Using slightly modified widget
- Hook on widget context plugin to add custom context for widget
- How to make wp multisite subdomain exist search
- Customize a widget position
- Custom Widget not Available after Plugin Installation
- Adding link on title its in description but not in title see screenshots attached
- Plugin Works, but Widget Doesn’t
- Widget Script Loads at Bottom of Page
- Use of apply_filter in plugin/widget class
- conditional tags for the output of a plugin
- Widget redirecting to home page
- Plugin won’t activate, fatal error (widget class not found)
- WordPress plugin not eching popular posts
- Trying to output a “Most visited blogs” list in wordpress multisite
- How to use template field in the Event Organiser plugin widget
- Scrolling Ads? Live scrolling widget, not random on refresh
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- Issue with customizer and widget page
- Footer option is missing in Customiser
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- Use custom Javascript for a custom Elementor Widget [closed]
- Why my widget is not visible in the WordPress theme Twenty Twenty-Three
- Hide attributes based on previous selection