javascript - Bootstrap Modal in separate js file -


i've faced following problem: when trying embed jquery code in html page, works fine. however, when put same 3 lines of code in separate js file, doesnt work! doing wrong?

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">        $(window).load(function(){                 $('#mymodal').modal('show');         }); </script> 


Comments