I want to update my code which works well with jquery 1.4.1 to work with jquery 1.10.2.
I searched on google but i didn't find what changes i have to make.
I get the following error:
Uncaught TypeError: Object #<Object> has no method 'photoTagger'
this is the name of the function i want to update.
You should simply use the jQuery migration file, which can be found here: http://code.jquery.com/
Then, you can use the newest jQuery version and your old plugins/jQuery code will still work, eg:
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
I would recommend you not to change entire code if it is not that necessary,because many code is dependent on jQuery library and some functions also deprecate and not support in latest versions. You may use multiple jQuery files on same page.