javascript - Can't access JQuery through JS file -


i have created html, css, , js documents linked through html doc.

<!doctype html> <html> <head>     <title></title>     <script type="text/javascript" src="script.js"></script>     <link rel="stylesheet" type="text/css" href="style.css"></link>     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">         </script> </head> <body> </body> </html> 

i have tested document connections , work fine, how jquery work in external js file?

use library file first , write scripts on scripts.js.

<!doctype html> <html>  <head>     <title></title>     <link rel="stylesheet" type="text/css" href="style.css"></link>     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">     </script>     <script type="text/javascript" src="script.js"></script> </head>  <body> </body>  </html> 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -