SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb newbie here Js and JQuery all about..

    hello again... what is the user of this langauge....




    can you show some sample for this?? thank you again..


    P.S

    *newbie about Js and Jquery*

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    jQuery is a JavaScript library, that simplifies manipulation of the DOM, event handling, animation and much more.

    Here is a simple example:

    Code JavaScript:
    <!DOCTYPE HTML>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>jQuery example</title>
        <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
      </head>
     
      <body>
        <button id="pressMe">Press Me</button>
        <div id="result"></div>
     
        <script>
          $(document).ready(function() {
            $("#pressMe").click(function(){$("#result").text("Hello, world!")});
          });
        </script>
      </body>
    </html>

    If you fancy learning more, you'll need to learn some JavaScript first (as jQuery is JavaScript), then you could read a book such as this one: http://www.sitepoint.com/books/jquery2/

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You need a good knowledge of JavaScript to an intermediate level to be able to use frameworks such as JQuery effectively. If you don't have sufficient JavaScript knowledge then you can end up writing JQuery code to perform tasks where the JQuery calls end up being more code than would be needed without JQuery.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •