I'm having an issue passing a JavaScript variable through a form correctly to a controller. I'm not sure how to do this since it's my first time working with JavaScript. Any help would be appreciated.
My code can be found below:
<script>
function findDoc(e){
...
var ID = grid._data[rIndex].document_ID;
}
...
{title: Grab, template: "<form action = '<?php echo $exepath;?> docs/grab' method = 'POST'><input type = 'submit' value = 'ID'></form>", width: 90}
</script>