I have the following code but i cannot access the data-alt-engine attributen can someone please tell me where I am going wrong, thank you in advance!
<select id="HotelList" name="HotelList" style="visibility: hidden; height: 30px;">
<option class="selectmsg" value="All" data-cluster="my hotel">SELECT HOTEL</option
<option class="hotel" data-cluster="france" data-alt-engine="">Hotel 1</option>
<option class="hotel" value="10216" data-cluster="france" data-alt-engine="1">Hotel 2</option>
</select>
jquery
$("#HotelList").change(function () {
// alert("Handler for .change() called.");
if ($("#HotelList option").attr("data-alt-engine") == "1")
{ alert("1"); }
else
{ alert("0"); }
});