JQuery increases height by 10 pixels without selecting an item twice

I want to increase the height of selected elements by 10 pixels. Is there a better way without selecting an item twice.

eg

$(this).height($(this).height()+10); 

Is there any method in jquery that handles this that I missed?

+7
source share
1 answer

Try something like this:

 $(this).height("+=10"); 
+16
source

All Articles