Third-party jquery plugin is not working along with struts2jquery plugin

Today, i was working with Third-party  jquery plugin for populate drop-down list but  drop-down was not populating.I spent hours of time on internet for finding  solution, at last i come to know that, this is jquery conflicting problem. Actually,  i was using third party jquery for this, so it was getting conflicting with struts2-jquery Plugin. struts2-jquery Plugin uses jquery library so if you use any other jquery library it get conflict because you are using  jquery library twice.If you will expand struts2-jquery Plugin library in NetBans IDE, you will find jquery library included in base folder.Here is the screen shot.





So solution is , you don't need to include the jquery library twice . So if you are including  jquery lib in head section <script type="text/javascript" src="jquery.js"></script> , remove this because It is

already handled by the <sj:head /> tag. 


Share on Google Plus

About JK STACK

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

1 comments: