• Jeegar
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I am trying to refer to a component using document.getElementById which is includede by apex:insert tag. The problem is I am not having control over specifying Id for the Insert tag, which salesforce assigns randomly when page renders.

 

Below is the sample code, I am not able to get reference of  "idLabelTag".

 

    <apex:insert name="header">
            <c:BIBheader />
    </apex:insert>

<apex:component id="BIBheader">

        <apex:outputLabel  id="idLabelTag" >800 888 1111</apex:outputLabel>

</apex:component>

 

Is there something I can do to fix this?

  • April 13, 2010
  • Like
  • 0