javascript - Sometimes jQuery plugin is not loaded -


i using jquery lot, stuck because browser cannot see jquery library, or maybe loads library after running javascript code.

pseudo-code explain question:

<html>     <head>         load css here         load jquery here     </head>     <body>       <p class="link-style3"><span id="my_tag"><span>bize hemen yazın</span></span></p>       <script>         $(function() {           $('#my_tag').click(function(e) {              alert('tesrt');           });         });       </script>     </body>   </html> 

i put stuff in order below, doesn't work now. when click <span id="my_tag">, doesn't anything, , doesn't return error.

what should do?

here entire code jsfiddle

try avoid syntax errors like(suggestable only)

<script type="text/javascript">  $(function() {     $('#my_tag').click(function() {          alert('tesrt');      });   }) </script> 

and put code @ top after load js files


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -