I have added
$( "#target" ).toggle(function() {
alert( "First handler for .toggle() called." );
console.log("HIiiiiiiiiiii");
}, function() {
alert( "Second handler for .toggle() called." );
console.log("Helooooo");
});
In Html i have added.
<div class="calendarcell"><a href="" id="target" >'+ val.Title + '</a></div>
Can u please suggest Me