<button class="btn btn-primary booking-btn text-uppercase" data-hotel-id='${hotel.id}'>Book Now</button>
$('body').on('click', '.btn-primary', function () { const hotelId = $(this).attr('data-hotel-id') $.cookie('id', hotelId); window.location.href = 'booking-form?id=' + hotelId; })
Request URL: http://localhost:8080/booking-form?id=2 Request Method: GET Status Code: 404
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)