How $(this.hash) works in jQuery? I presupposed that this script should work like this - if I click to link with href tickets it will show div with id tickets. But it not works.
var search = $("#switcher").find("a"),
hotels = $("#find").children("div").hide();
search.on('click', function (e) {
$(this.hash).show()
e.preventDefault()
});