I expected that selector will be $("a.3") but it was not.
var giftId = '3';
$("a."+giftId).click(function() {
    ...
});
Can not I make like this?
Even if class name is not starts with digit it still does not concatenated
<a class="gift6"...
    var giftId = '6'; 
    $("a.gift"+giftId).click(...
 
    