javascript - Jquery.min.js local copy not calling window load function -
i using jquery focus of tabs. when used :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
in jsp window.load function works good, when downloaded jquery.min.js , added in js folder.
<script type="text/javascript" src="jquery.min.js"></script>
this.
now window.load function not working.
<script type="text/javascript">
$(window).load(function() { alert('hello'); if($("#updatetemp").val()=="true"){ $("#update_link").click();} }); </script>
i found out way use jquery locally..
jquery(window).bind("load", function($) { var msgtemp= jquery("#updatetemp").val(); if(msgtemp=="true"){ jquery("#update_link").click(function() { }).click(); } });
instead if $ symbol used jquery attribute , worked.
Comments
Post a Comment