javascript - JQuery Beginner .after is not working -


what's problem code? i'm sure path of js file correct. think it's code. not showing inserted paragraph..

<!doctype html> <html lang="en">     <head>         <title>embedded script</title>         <meta charset="utf-8"/>     </head>     <body>         <h1>embedded script example</h1>         <script type="text/javascript" charset="utf-8" src="js/jquery-1.7.2.min.js"></script>         <script type="text/javascript" charset="utf-8">          $(document).ready(function(){             $("h1").after("<p>i've inserted paragraph</p>");         });         </script>     </body> </html>​ 

you path must wrong, or jquery library somehow corrupt. have copied code, changed jquery path recent code on jquery.com, , uploaded page http://www.apsillers.com/inline.html. use ctrl+u view source verify same yours. (i use fiddle doesn't allow inline scripts, think.)

this proves pretty conclusively problem due failure load jquery library. check error console, , verify jquery extant object in js console.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -