This link has been bookmarked by 120 people . It was first bookmarked on 16 Dec 2008, by boho .net.
-
murat sahinjQuery kullanımını daha hızlı ve etkili hale getirecek öneriler veriyor.
-
Frederik Van ZandejQuery is awesome. I've been using it for about a year now and although I was impressed to begin with I'm liking it more and more the longer I use it and the more I find out about it's inner workings.
I'm no jQuery expert. I don't claim to be, so if there are mistakes in this article then feel free to correct me or make suggestions for improvements. -
Emmanuel Vuigner<h3>Introduction</h3>" /><meta name="Keywords" content=",
-
gialloporpora25 tips and shortcuts, from beginner to advanced to make you a better jQuery coder.
-
-
Learn to use animate properly
-
Streamline your HTML and modify it once the page has loaded
- 3 more annotations...
-
-
Felipe LavínjQuery is awesome. I've been using it for about a year now and although I was impressed to begin with I'm liking it more and more the longer I use it and the more I find out about it's inner workings.
I'm no jQuery expert. I don't claim to be, so if ther -
ricardoriogojQuery is awesome. I've been using it for about a year now and although I was impressed to begin with I'm liking it more and more the longer I use it and the more I find out about it's inner workings.
I'm no jQuery expert. I don't claim to be, so if ther -
Tristan RivoallanI'd call myself an "intermediate" jQuery user and I thought some others out there could benefit from all the little tips, tricks and techniques I've learned over the past year. The article also ended up being a lot longer than I thought it was going to be so I'll start with a table of contents so you can skip to the bits you're interested in.
-
-
- $('#myDiv').data('currentState', 'off');
- $('.button').click(function() {
- var menuItem = $(this).parent();
- var panel = menuItem.find('.panel');
- if (menuItem.data('collapsed')) {
- menuItem.data('collapsed', false);
- panel.slideDown();
- }
- else {
- menuItem.data('collapsed', true);
- panel.slideUp();
- }
- });
14. Even better, use jQuery's internal data() method to store state
It's not very well documented for some reason but jQuery has an internal data() method which can be used to store information in key/value pairs against any DOM element. Storing a piece of data is as simple as this...
I'm sure you'll agree this is much neater. For more information about data() and removeData(), see this page...
jQuery internals -
- var $j = jQuery.noConflict();
- $j('#myDiv').hide();
19. Use noconflict to rename the jquery object when using other frameworks
Most javascript frameworks make use of the $ symbol as a shorthand and this can cause clashes when trying to use more than one framework on the same page. Luckily there's a simple solution. The .noconflict() function gives control of the $ back and allows you to set your own variable name, like this... - 2 more annotations...
-
-
Yann Esposito<h3>Introduction</h3>" /><meta name="Keywords" content=",
-
jeunium jeunium<h3>Introduction</h3>
-
Gary BurgeI'd call myself an "intermediate" jQuery user and I thought some others out there could benefit from all the little tips, tricks and techniques I've learned over the past year. The article also ended up being a lot longer than I thought it was going to be
-
Mark BlairjQuery is awesome. I've been using it for about a year now and although I was impressed to begin with I'm liking it more and more the longer I use it and the more I find out about it's inner workings.
I'm no jQuery expert. I don't claim to be, so if there are mistakes in this article then feel free to correct me or make suggestions for improvements.
I'd call myself an "intermediate" jQuery user and I thought some others out there could benefit from all the little tips, tricks and techniques I've learned over the past year. The article also ended up being a lot longer than I thought it was going to be so I'll start with a table of contents so you can skip to the bits you're interested in.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.