Need to escape white space before appending to url
<p>This is the parameter portion of the string as I need it:</p>

<pre><code>?parentId=PRICE&amp;childId=%20LIST
</code></pre>

<p>This is the parameter portion as it is (Note the missing %20):</p>

<pre><code>?parentId=PRICE&amp;childId=LIST
</code></pre>

<p>Here is the function that gathers the data from two select boxes (#parentCodes and #childCodes):</p>

<pre><code>            function ajaxCodeDetails(){
                $.getJSON(
                "manage-inventory-codes_codeDetails",
                {'parentId': $("#parentCodes").val(),
                    'childId': $("#childCodes").val()},
                renderDetails
            );
            }
</code></pre>

<p>How do I escape the result returned by val() before sending the request? </p>
