Widget Javascript code (ajax)
The problem is that this only works when the widget is present in a sidebar. If you need some code to run independently from widget, I reason it makes sense to add that code separately from widget class. And I also need it to work when I call this widget with the_widget() function, for eg. … Read more