$(function () {
  $("#loadClubs").remove();
  $("#state").change(function () {
    if (this.selectedIndex <= 0) {
      return;
    }
    $.get("ajax.svc/LoadClubsByState", { s: $(this).val() }, function (data) {
      var s = $("#club");
      var oldValue = s.val();
      s.attr({
        length: 1
      });
      $("Club", data).each(function () {
        s[0].options[s[0].length] = new Option($("COMPANY", this).text(), $("ID", this).text());
      })
      s.val(oldValue);
    })
  }).change();
})

