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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

python - Does anyone know how to configure the hunpos wrapper class on nltk? -