<% @solicitors.each do |solicitor| %>
  $('.solicitor_results_list').append("<a href='#' class='list-group-item solicitor_result'>\
      <h4 class='list-group-item-heading'><%= solicitor['name'] %></h4>\
      <p class='list-group-item-text'><strong>Firm</strong> <%= solicitor['firm']['name'] %></p>\
      <p class='list-group-item-text'><strong>Mob</strong> <%= solicitor['mobile'] %></p>\
      <p class='list-group-item-text'><strong>Email</strong> <%= solicitor['email'] %></p>\
      </a>");
<% end %>

$('.solicitor_result').each( function() {
  $(this).click(function(e) {
    e.preventDefault();
    $('.solicitor_results_list').html('');
  });
});

Append all the solicitor search results to a solicitor list
Append all the solicitor search results to a solicitor list

- For now, clicking on a result will just clear the list,
when linked up with the defence request form, we will populate
form fields based on the chosen solicitor.
