Added: 2 years ago
From: polymorphicpodcast
Views: 38,293
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • As an extension of this, you can click the little triangle icon to the right of the console which brings up a multiline console. This makes coding more complex functionality a breeze.

  • thanks for this video. helps alot! 

  • Nice!

    

  • Hey, also checkout Chrome's plugin called JSShell, it works with JQuery and it is awesome to practice.

  • Wow start Now :) Thanks!!!

  • Thank you for the great video. Certainly now Jquery seems easy!

    Pali Madra

  • Instead of calling jQuery by calling jQuery() you can also use the shorter form: $()

    In the video I don't see you closing every statement with a semicolon, although that works inside the console, I'd like to emphasize the good habit of ending every statement with a semicolon. You probably know that, but some neophyte Javascript learners may not.

    Anyways, thanks for the video!

  • @nielsbom

    Yes you can use the shorthand $ function, but doing so puts you at risk of conflicting with another library. It is considered good programming to always begin coding with jQuery(), or using jQuery.noConflict when you know you'll be working with another library (like prototype).

  • @hidoisan

    OK I think I understand the $ argument, but is that just for the part where you start the execution of the Javascript or basically everywhere I would use a $ now?

    $(document).ready(function(){

    });

  • @nielsbom

    The example below shows you how jQuery and the Prototype js library can be used without conflict: jQuery(document).ready(functio­n($){ // Do jQuery stuff using $ $("div").hide(); });

    // Use Prototype with $(...), etc.

    $('someid').hide();

    Again, though, this is only really necessary if you expect to work with another js library or if you are writing plugins.

    

  • @hidoisan Thanks for the explanation, I've put this in pastebin so other people can read it more easily.

    Dang, YouTube does not allow url's, just checkout id 363467 at the pastebin ORG site.

  • fantastic!!!

  • very cool

  • Comment removed

  • brilliant. Thanks

  • Interesting tutorial.

  • Really helpful Video ..

  • Thanks guys its a nice vid.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more