diff options
author | Gnomino <Gnomino@users.noreply.github.com> | 2016-10-27 13:36:08 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-10-27 13:36:08 +0200 |
commit | 78a4ae7da90139fecb2add55722ae7a54f43c593 (patch) | |
tree | ef4c9a351c1a550de2c8609d2b2aabb062314e1a /jquery.html.markdown | |
parent | df52fda2e867c0e7ef31148ea498eaf3023df30b (diff) |
[jQuery/en] [jQuery/es] Fixes syntax errors (#2525)
* Fixed syntax errors
* Fixes syntax errors
Diffstat (limited to 'jquery.html.markdown')
-rw-r--r-- | jquery.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery.html.markdown b/jquery.html.markdown index 5ac730f5..d498733d 100644 --- a/jquery.html.markdown +++ b/jquery.html.markdown @@ -66,7 +66,7 @@ $('#btn').on( ); // You can move and hide elements with some effect methods -$('.table').hide(); # Hides the element(s) +$('.table').hide(); // Hides the element(s) // Note: calling a function in these methods will still hide the element $('.table').hide(function(){ @@ -121,7 +121,7 @@ $('p').height(); // Gets only the first 'p' tag's height // You can use each to loop through all the elements var heights = []; $('p').each(function() { - heights.push($(this.height)); // Adds all 'p' tag heights to array + heights.push($(this).height()); // Adds all 'p' tag heights to array }); |