send variable and run a specific method of WordPress widget class by ajax

I have created a wordpress plugin which use widget to show result in front-end.
and I’m going to add an ajax pagination, refreshing data. could you tell me how to rerun wordpress widget with new parameters sent to it ?
getting more clear, there is a job method in my Viewer widget class which extends WP_Widget:

class Viewer extends WP_Widget {
...
public function widget($args, $instance) {

  $input['page'] = $_GET['page'];

  $query = $this->jobs($input);

  return $query;

}

How colud I assign page var from html DOM using jQuery and send it to jobs php function ?

Read more here: send variable and run a specific method of WordPress widget class by ajax

Leave a Reply

Your email address will not be published. Required fields are marked *