Reply To: Hotel Booking – To simply fill in and send to outside link

#10044671
sandyms
Participant

I just dont what the val is that you included. Here is mine attempt with their naming and me changing my fields in the form to match.

(I left out the Promo/Group Code – as that is suppose to be a string and I am lost on that one)

window.location = “https://BOOKINGSITE.com/search-results/” + $(‘#Checkin-Date’).val().replace(‘/’, ”).replace(‘/’, ”) + “/” + $(‘#Checkout-Date’).val().replace(‘/’, ”).replace(‘/’, ”) + “/” + $(‘#adultsCount’) + “/” + $(‘#childrenCount’) “;

So should I also add .val()

Like this maybe …

+ $(‘#adultsCount’).val() + “/” + $(‘#childrenCount’).val()