﻿$(document).ready(function() {
    $('#hotel_list li')
.click(function() {
    //now $(this) refers to the current list_item element, dig deeper with .find() to get the link:
    var details_link = $(this).find('a#hotel_details_link')[0].href;
    //do the ‘redirect’:
    parent.location.href = details_link;
}
)
});