Click here to Skip to main content
15,895,871 members
Please Sign up or sign in to vote.
1.20/5 (2 votes)
<script type="text/javascript">
  $(document).ready(function(){
    var champ;
    $(".first_tab").champ();

    $(".accordion_example").champ({
              plugin_type :  "accordion",
              side : "left",
              active_tab : "3",
              controllers : "true"
    });

    $(".second_tab").champ({
              plugin_type :  "tab",
              side : "right",
              active_tab : "1",
              controllers : "false"
    });

    $(".third_tab").champ({
              plugin_type :  "tab",
              side : "",
              active_tab : "4",
              controllers : "true",
              ajax : "true",
              show_ajax_content_in_tab : "4",
              content_path : "html.txt"
    });
      
  });
</script>
<!--branding script-->
   <script type="text/javascript">
    $('.tab-content>div').hide();
    $('.tab-content>div').first().slideDown();
      $('.tab-buttons span').click(function(){
      var thisclass=$(this).attr('class');
      $('#tabs-wrapp').removeClass().addClass('#tabs-wrapp').addClass(thisclass);
      $('.tab-content>div').each(function(){
        if($(this).hasClass(thisclass)){
        $(this).fadeIn(800);
        }
        else{
        $(this).hide();
        }
      });
      });
    </script>


What I have tried:

<pre>i am getting an error .champ is not a function in java script 
Posted
Updated 11-Oct-17 0:52am
Comments
Wessel Beulink 11-Oct-17 5:40am    
Yeah, you made a variable of the champ how would champ be a function then?
Member 13341049 11-Oct-17 5:56am    
This script i used for animation tabs. i am only create variable champ. initially champ variable not available.

I am using this jquery plugin
https://github.com/bhaveshcmedhekar/multipurpose_tabcontent
Wessel Beulink 11-Oct-17 6:03am    
All scripts loaded and are you on jquery 1.7+?
Member 13341049 11-Oct-17 6:06am    
i am using jquery 2.0
Karthik_Mahalingam 11-Oct-17 6:15am    
show your html header code

Make sure that the file is referenced properly and the file is refered only once.
<script type="text/javascript" src="jquery.multipurpose_tabcontent.js"></script> // root directory 


if the file is present in other folder then

<script type="text/javascript" src="js/jquery.multipurpose_tabcontent.js"></script>
 
Share this answer
 
v2
<div class="col-sm-12 col-md-11 col-md-offset-1 col-xs-12">
				<div class="tab_wrapper tab_wrapper-camp first_tab">
					<div class="tabs-radious"></div>
                        <ul class="tab_list tabs-according-approach tab-buttons">
							<li class="active"><span class="content1">Integrated Campaigns</span></li>
							<li><span class="content2">Independent Campaigns</span></li>
                            
                        </ul>
                        
                        <div id="tabs-wrapp_campaigns" class="content1 hidden-xs"></div>
                   		<div class="top-line-tabs-campaigns top-line-tabs-campaign hidden-xs"></div>
					
                    <div class="content_wrapper">
						<div class="tab_content active">
                        	<div class="col-sm-12 col-md-5 col-xs-12 tabs-title-according padd-rl">
                            <p>In a world of 360 degree marketing, traditional and new media don't really exist. As they say, the ‘Mad Men’ era of marketing has passed. Every campaign is aimed at reaching the optimal audience and engaging them to achieve positive brand reinforcement. We identify touch points your customers might interact with and cook the ‘Big Idea’ to instantly wow them into starting a conversation with the brand. </p>
                            </div>
                            <div class="col-sm-12 col-md-5 col-md-offset-1 col-xs-12 tabs-title-according padd-rl">
                            <p>Based on your needs and budgets, we are adept at creating large and small campaigns across Above the Line (ATL), Below The Line (BTL), Through The Line (TTL) and of course Digital.  </p>
                            </div>
						</div>

					<div class="tab_content">
                        <div class="col-sm-12 col-md-5 col-xs-12 tabs-title-according padd-rl">
                            <p>We love to crack that uncrackable brief that’s been bothering you. We are medium agnostic and work with you to identify specific KPIs that you may have, devise campaign plans and execute them for you.</p>
                            </div>
                            <div class="col-sm-12 col-md-5 col-md-offset-1 col-xs-12 tabs-title-according padd-rl">
                            <p>Be it increasing engagement, increasing sale or creating awareness, we work with you to ensure that your specific goals are met.  
                         </p>
                          </div>
                    </div>

                    

				
			</div>

		</div>
                
                
                
                
                
			</div><!--col-md-12-end-->
 
Share this answer
 
Comments
Karthik_Mahalingam 11-Oct-17 6:29am    
use  Have a question or Comments? to post comments, dont use solution.
Member 13341049 11-Oct-17 6:34am    
Have a question or Comments? It not taken the html tags
Karthik_Mahalingam 11-Oct-17 6:36am    
add here
https://jsfiddle.net/
and shre the link

or wrap your code inside < pre > tag
Member 13341049 11-Oct-17 6:48am    
https://jsfiddle.net/dandupavan/jxfr2wfg/

i am downloading the script from ths link
https://github.com/bhaveshcmedhekar/multipurpose_tabcontent

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900