Avoid jquery conflict in my jsf application

后端 未结 1 800
鱼传尺愫
鱼传尺愫 2020-12-20 05:37

I load jquery in my jsf project. I load header part only.

Before i load the jquery, link and menu actions are perfectly worked. (Not load jquery) <

相关标签:
1条回答
  • 2020-12-20 05:55

    I got the answer.

       <head>  
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">      
    
        <a4j:loadScript src="resource:///org/richfaces/renderkit/html/scripts/jquery/jquery.js" />                 
        <a4j:loadScript src="../scripts/highcharts.js"/>  
    
        <script type="text/javascript">  
    
         jQuery.noConflict();  
    
         jQuery(document).ready(function()  
         {  
              ....  
              ....  
         });  
    
     </script>  </head> 
    
    0 讨论(0)
提交回复
热议问题