title: jQuery - call function based on page id
body: <p>how can I check the <code>id</code> on every page's <code>&lt;body&gt;</code> tag and perform a set of unique jQuery functions based on the page's <code>id</code>?</p>
  
  <p>for example, I have a page with <code>id=red</code> and another page with <code>id=blue</code>. On page load, I need to check the id and then assign the appropriate color to a div on the page.</p>
  
  <p>thanks</p>