Calling Lua method from jQuery onclick event

I have written a jQuery click event for button. In the event some validation are performed.
If all the validations are passed then want to call a Lua method which does uci:set/commit.
How to call a Lua method from jQuery?

Lua lives in the server, and jQuery lives in the client: your js code should make a request to the server, and that request should invoque your Lua method.

Sorry, I'm new to Lua.
Can you please provide an example of how the request should be made and response should be sent from server?

The configuration pages on the router are full of such examples. The "overview" page has several gauges that are updated automatically, the "interfaces" page has several buttons that perform actions without refreshing the page, ...