Tried to define the variable globally and it didn't work


#1

If i try to define $target outside the given jquery it does not work. I thought it becomes global and we can use it for whatever function we like.

var $target= $('#line4')
$(document).ready(function() {
$target.fadeOut('fast');
});


#2

one misssing semi-colon. ;


#4

Facepalm, my silly errors thanks :smile: