Hi, I am a newbie to JQuery.

Hi, I am a newbie to JQuery.

i need some help,
I use this tabs
http://codepen.io/marrysmil/pen/wKywRP
and i want to change some function like :
if you click on home form line 1 tabs  and than you click on profile from line 2 tabs the first line tab need to be closed when i do this :-??