For example I have a variable $abc. I want to somehow pass it to the jQuery AJAX POST function which is stored in another JS file. The post function will pass that variable to page2.php and this page will use it to query database and finally display the content of page2.php on the current page.
So how do I actually pass the $abc variable to the jQuery post function which is in an external JS file?