From 78a4ae7da90139fecb2add55722ae7a54f43c593 Mon Sep 17 00:00:00 2001 From: Gnomino Date: Thu, 27 Oct 2016 13:36:08 +0200 Subject: [jQuery/en] [jQuery/es] Fixes syntax errors (#2525) * Fixed syntax errors * Fixes syntax errors --- jquery.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jquery.html.markdown') 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 }); -- cgit v1.2.3