Is there any way to get POST values in jQuery?
jQuery is for client-side Javascript. You grab POST values with server-side languages. You can provide them by mixing server-side with client-side:
<script>
(function() {
var x = "<?php echo ( isset( $_POST['name'] ) && $_POST['name'] != '') ? $_POST['name'] : '';?>";
})();
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With