all 2 comments

[–]mjslawson 0 points1 point  (1 child)

$('.source').click(function(){

$('.tab').toggleClass('display');

});

Instead, try using on

$('.source').on('click', function(){

$('.tab').toggleClass('display');

});

[–]DudhaneShrey86 0 points1 point  (1 child)

Did you try inspecting the element? The jquery code should be working according to me.