Jquery

why use JQUERY – for compatibility purposes. cross-browser.

 

standards mode – followed w3c recommendation

quirks mode –

 

download – http://docs.jquery.com/Downloading_jQuery

$jquery(); = $();

 

<script src = “jquery-1.8.1.js”></script>

<script>

$(window).load(function(){

 

– render html code

 

};

$(function(){

 

};

</script>

http://html5games.com/2012/09/blocks-on-blast-2/

 

source code:

<!DOCTYPE html>

<html>
    <head>
        <title>THIS FILE IS FOR jquery REFERENCE</title>
                <style type=”text/css” media=”screen”>
                    #watch {border:1px solid #ababab;}                               
                </style>       
                <script charset=”utf-8″ src=jquery-1.18.1.js”><script>
                <script charset=”utf-8″>
                $(function(){               
                    $(“#watch”).html(“Hello World”);
                    var mybutton = $(“#btn1”);
                    mybutton.click(function(){
                        mybutton.val(“Hello Function callback”);
                        });
                    }
                });
                functionx(){
                    alert(“hello”);
                }
                </script>               
    </head>
    <body>       
        <div id=”watch”>
        </div>
        <input type=button id=”btn1″>
    </body>
</html>

 

touch README

echo “This is readme” > README

 

git add

git commit –m “”

git push –u origin master

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s