passing #foo selectors into $.get() data URL parameters
<p>I am trying to make an ajax call using $.get() where I want to pass in a specific element selector (#id) into the data:</p>

<pre><code>$.get('http://www.url.com',
    {
     param1: 'param1Val',
     param2: 'param2Val',
     #id:    'selector'
     }
     function(data) {
        ...
     });
</code></pre>

<p>I could try passing it in as</p>

<pre><code>$.get('http://www.url.com#id', ... );
</code></pre>

<p><strong>EDIT</strong>
The purpose of attempting to use a #selector within the request URL is to grab only a specific "chunk" of HTML from within a specified element -- hence, I use remote_URL#element_id in the address. This works the same as any <code>&lt;a href="#go_to_element"&gt;Go to element with id="go_to_element"&lt;/a&gt;</code> link which will send you to a specific part of the page.</p>

<p>See the answer below.</p>
