title: How to append an ID with the value from another ID in JQuery
body: <p>I need to grab the value of an id and attach it to the end of a url on my form. Here's the html code for the input...</p>
  
  <pre><code>&lt;input id="ServiceRequestEditForm.CustomObject6 Id" type="hidden" value="" tabindex="-1" name="ServiceRequestEditForm.CustomObject6 Id"/&gt;
  </code></pre>
  
  <p>I want to capture the value of this input. I am trying to use the following code, but it doesn't work...</p>
  
  <pre><code>$("a[href*='http://www.google.com']").attr('href', 
  ('http://www.google.com/search?q'+('Form.CustomObject6 Id').val()));
  </code></pre>
  
  <p>Could someone please help me to get this working.</p>