• krishna2610
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi All,

 

I have below test Visualforce page , in which i am trying to call onclick event for tab but it not working.

 

Can someone help me ..

 

code//

 

 

<apex:page standardController="Account" ><head> <script language="javascript"> function setfirst() { alert("first"); } function setsecond() { alert("second"); } </script></head> <apex:tabPanel switchType="client" selectedTab="tabdetails" id="tabPanel"> <apex:tab label="General" name="General" id="tabGeneral" onclick="setfirst()"> </apex:tab> <apex:tab label="Professional" name="Professional" id="tabProfessional" onclick="setsecond()"> </apex:tab> </apex:tabPanel></apex:page>

 

Regards,

Deepak