I want to know that when i add jquery in page i want to check before i add that does that jquery already added or not if not added then only add else not.
for example i have added jquery jquery-1.4.1.min
<script type="text/javascript" src="<?php echo SITE_JS;?>jquery-1.4.1.min"></script>
after that when i am trying to add jquery jquery-1.7.1.min
in case i didnt know that i have already added or not
so i tried to add it but before that i want to check the version if the jquery with the old version or same then i dont want it to add else add new jquery and disable older one.
<script type="text/javascript" src="<?php echo SITE_JS;?>jquery-1.7.1.min"></script>
before adding this i want to check does jquery already exist with higher version or not. how is it possible?