title: Getting a web part HTML id, in a web part page, using javascript
body: <p></p>
  
  <p>I have a web part page with four web parts:</p>
  
  <p>1 Content editor - to run some javascript.</p>
  
  <p>2 Infopath form web parts.</p>
  
  <p>1 list view web part.</p>
  
  <p>I want to change the display properties of those web parts dynamically according to what happenes on page (specific list connection or user actions)</p>
  
  <p>For that, i need to know which web part's html id (they are registered as WebPartWPQ2, WebPartWPQ3 and so on..)is which, and what the id's are in the first place.</p>
  
  <p>I tried using WPSC(Web Part Page Services Component) but it seems to only register the content editor W.P on the page - and disregards the list view or the infopath form web parts.</p>
  
  <p>Trying the ECMAscript client object model (SP.Webparts is what i tried using) got me the web parts on the page, but no option to get the actual html id (just the GUID)</p>
  
  <p>does anyone have an idea as to how to get the id's for the web parts?</p>
  
  <ul>
  <li>i want to eventually be able to edit this page, so i can assume with confident that those ids will change.</li>
  </ul>