MCQs > IT & Programming > JavaScript > How can a plugin function be called using Ajax?

JavaScript MCQs

How can a plugin function be called using Ajax?

Answer

Correct Answer: 1. Adding the JavaScript file: jQuery(document).ready(function($) { var data = {action: 'my_action',whatever: ajax_object.we_value }; jQuery.post(ajax_object.ajax_url, data, function(response) {alert('Got this from the server: ' + response);}); }); 2. Then adding the PHP file:

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it