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.
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.
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).
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?
The example below shows you how jQuery and the Prototype js library can be used without conflict: jQuery(document).ready(function($){ // 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.
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.
BenMartinStudios 5 months ago
thanks for this video. helps alot!
pescaditopaz 7 months ago
Nice!
freyja43 9 months ago
Hey, also checkout Chrome's plugin called JSShell, it works with JQuery and it is awesome to practice.
JREAMdesign 1 year ago
Wow start Now :) Thanks!!!
sashikanta 1 year ago
Thank you for the great video. Certainly now Jquery seems easy!
Pali Madra
palimadra 1 year ago
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 1 year ago
@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 1 year ago
@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 1 year ago
@nielsbom
The example below shows you how jQuery and the Prototype js library can be used without conflict: jQuery(document).ready(function($){ // 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 1 year ago
@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.
nielsbom 1 year ago
fantastic!!!
LeadVideoTube 1 year ago
very cool
EndMan7 1 year ago
This has been flagged as spam show
i was using web developer toolbar for this functionality , but it seems firebug is a whole lot more awesome for this! i'm installing it right away!
helmus2000 1 year ago 2
Comment removed
helmus2000 1 year ago
Comment removed
helmus2000 1 year ago
brilliant. Thanks
kas59 1 year ago
Interesting tutorial.
shakirovruslan 2 years ago
Really helpful Video ..
ergautam123 2 years ago
Thanks guys its a nice vid.
Zooter007 2 years ago 2