I think this is a simple problem of my not knowing my syntax very well yet, but I am trying to get a js variable in a PHP, which actually happens to be in another js. I keep getting unterminated string literal error amoungst others general not working errors.
Code is as follows taking out the unnecessary
<script>
jQuery(document).ready(function() {
var caNumber = document.getElementById("doc_id").value;
var uploader = new plupload.Uploader({
url: '<?php echo admin_url('admin-ajax.php?project='.$_GET["project"].'&action='.$_GET["action"].'&number=caNumber') ?>'
});};
</script>
The problem in question is how to get the CaNumber in the url: where I have show CaNumber.
Thank you for time and assistance.