13. September 2008

Gotcha of inline Document Ready function for JQuery

I’ve had some reasons to use JQuery this week, and you should believe whatever good rumors and hype you’ve heard about this library. It’s amazing.

There are many benefits to a Javascript framework, particularly JQuery. Take this example that I put inside my <head\> element:

<script type="text/javascript">
    $(document).ready(function(){
        $('#deliciouslogin').submit(function(){
            alert("This to authenticate with Delicious and start retrieving Bookmarks into Google Gears  database");
        })
    });
</script>

more