Generally stick with one jquery file included. This is a fairly large file and there is no need to import multiple versions. I would choose the latest version that can be sent from Google or Microsoft to speed up your server.
Note that if you want "doSomething" to behave differently depending on where it called on the page, you can try to link the event differently. See the following example. Like you, it calls the new version from your plugin area in the page ready event - it may be later than you expected.
<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body> <div id="elem"></div> <script> var oldFunct = function (e,o) { alert("old jquery" + o); }; var newFunct = function (e,o) { alert("new jquery" + o); }; $("#elem").bind("doSomething", oldFunct); $("#elem").trigger("doSomething", ["1"]); </script> <script> $(document).ready(function(){ $("#elem").bind("doSomething", newFunct); $("#elem").trigger("doSomething", ["2"]); $("#elem").bind("doSomething", oldFunct); }); </script> <script> $("#elem").trigger("doSomething", ["3"]); </script> </body> </html>
source share