javascript - Get an alert box to popup at the jquery event $(document).ready in smarty template -


i'm juuuuuust trying pop displaying test when document ready. i've managed google maps working on page somehow lot of pain.

here's code:

<html>     <head> [...]         <script type="text/javascript" href="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>         {literal}         <script type="text/javascript">             $(document).ready(function () {                 alert ("test"); });         </script>         {/literal}     </head> [...] </html> 

what should popup message? tried copy pasting working jquery page without success.

changing <script href=...> <script src=...> works charm me.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -