I am trying to read the post request parameters from my HTML. I can read the get request parameters using the following code in JavaScript.
$wnd.location.sea
I have a simple code to make it:
In your index.php :
In your main.js :
let my_first_post_param = $("#first_post_data").val();
So when you will include main.js in index.php () you could get the value of your hidden input which contains your post data.