function renderHistoryLocationInfo() {
  var li = $('.list-group').children(".list-group-item");
  for (var i = 0; i < li.length; i++) {
    li[i].addEventListener("click", function (event) {
      var loc = event.target.textContent
      searchCity(loc);
    });
  }
}
//Function to display the weather of the location selected from the search history.
Function to display the weather of the location selected from the search history.
Function to display the weather of the location selected from the search history .
function renderHistoryLocationInfo() {
  var li = $('.list-group').children(".list-group-item");
  for (var i = 0; i < li.length; i++) {
    li[i].addEventListener("click", function (event) {
      var loc = event.target.textContent
      searchCity(loc);
    });
  }
}
function renderHistoryLocationInfo ( ) { var li = $ ( '.list-group' ) . children ( ".list-group-item" ) ; for ( var i = 0 ; i < li . length ; i ++ ) { li [ i ] . addEventListener ( "click" , function ( event ) { var loc = event . target . textContent searchCity ( loc ) ; } ) ; } }
Function to display the weather of the location selected from the search history.
Function to display the weather of the location selected from the search history .