$('.res-buttonOff').on('click', function () {
adults = "adults=" + $("#adultsOff").val() + "&";
kids = "children=" + $("#kidsOff").val();
- if ($('#propertyNameOff option:selected').val() === "Stafford's Bay View Inn") {
+ if ($('#propertyNameOff option:selected').text() === "Bay View Inn") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + bayView + start + stay + adults + kids);
- } else if ($('#propertyNameOff option:selected').val() === "Stafford's Crooked River Lodge") {
+ } else if ($('#propertyNameOff option:selected').text() === "Crooked River Lodge") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids);
- } else if ($('#propertyNameOff option:selected').val() === "Stafford's Perry Hotel") {
+ } else if ($('#propertyNameOff option:selected').text() === "Perry Hotel") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids);
- } else if ($('#propertyName option:selected').val() === "Property") {
+ } else if ($('#propertyName option:selected').text() === "Property") {
alert("Please Select a Property");
}
});
$('.res-buttonOff').on('click', function () {
adults = "adults=" + $("#adultsOff").val() + "&";
kids = "children=" + $("#kidsOff").val();
- if ($('#propertyNameOff option:selected').val() === "Stafford's Bay View Inn") {
+ if ($('#propertyNameOff option:selected').text() === "Bay View Inn") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + bayView + start + stay + adults + kids);
- } else if ($('#propertyNameOff option:selected').val() === "Stafford's Crooked River Lodge") {
+ } else if ($('#propertyNameOff option:selected').text() === "Crooked River Lodge") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids);
- } else if ($('#propertyNameOff option:selected').val() === "Stafford's Perry Hotel") {
+ } else if ($('#propertyNameOff option:selected').text() === "Perry Hotel") {
window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids);
- } else if ($('#propertyName option:selected').val() === "Property") {
+ } else if ($('#propertyName option:selected').text() === "Property") {
alert("Please Select a Property");
}
});