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
Post a Comment