Correct syntax for $.post() method is ____________ A. $.post(URL,data,callback)

correct-syntax-for-post-method-is-a-post-url-data-callback

Correct syntax for $.post() method is ____________

A. $.post(URL,data,callback)

B. $.post(URL,data)

C. $.post(URL,callback)

D. $.post(data,callback)

The question was asked by my school principal while I was bunking the class.

This intriguing question originated from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

The correct option is A. $.post(URL,data,callback)

Explanation: The correct syntax for $.post() method is $.post(URL,data,callback). URL is the URL we want to request for. Callback is the name of the function that is to be executed. Data specifies the data that is to be send with the request.