I have created a Vf page in which i want to display 2 apex:pageBlock. I created the apex:tabPanel as demo for the first time and tested it was working
content for tab one content for tab two
After this i made some changes to code and added my code to the existing code the tabs, now the tabs do not work as it was changing earlier. my code updated code
<apex:tabPanel switchType="client" selectedTab="name2" id="theTabPanel">
<apex:tab label="Offers" name="offers" id="offersId" immediate="true">
<apex:pageBlock>
<apex:ListViews type="Offers__c" />
</apex:pageBlock>
</apex:tab>
<apex:tab label="Submit IP for Approval" name="IPApproval" id="IPApprovalId">
<apex:pageBlock id="Approvalpanal" >
<apex:pageBlockSection title="Submit IP for Approval">
<apex:form>
<c:AutoCompleteV2 allowClear="true" importJquery="true" labelField="Name" SObject="Offers__c" valueField="Id" targetField="{!targetField}" style="width:200px"/>
<apex:InputField value="{!appr.IP_address__c}" style="width:300px;"/>
</apex:form>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:form>
<apex:commandButton action="{!saveForApproval}" value="Save For Approval" />
</apex:form>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:tab>
</apex:tabPanel>`
Can anybody guide me what i am getting wrong.