How can I pass the value of an input in a href
<p>I'm trying to pass the LoadNumber into a php file to use in a query and result in a FPDF on a button click. the button works but the value its passing is $(' not the value I wanted. Where am I going wrong. Here is my code.</p>

<pre><code>$(location.href="dispatch.php? LoadNumber=$('#LoadNumber').val()")};
</code></pre>
