Show only related Items in dropdownList

Show only related Items in dropdownList

I have two dropdownlist and want to show only related items. When the first dropdown item is selected show the item in the second dropdown based on their ID's. Don't show everything.

Below is my Jquery 
  1. <script type="text/javascript">
  2.     $('#ddltest').change(function () {
  3.         var contId = $("#ddltest").val();
  4.         var _tt = $(this).val();
  5.         $.ajax({
  6.             type: "GET",
  7.             dataType: "json",
  8.             url: "/Upload/Load",
  9.             data: { id: contId },
  10.             success: function (data) {
  11.                 $.each(data, function (i, events) {
  12.                     $("#ddlmore").append('<option value="'
  13.                         + events.Value + '">'
  14.                         + events.Text + '</option>');

  15.                 });
  16.             },
  17.             error: function (xhr) {
  18.                 alert('Sorry  selection ');
  19.             }
  20.         });
  21.     });
  22. </script>
  23. When WD/TO is selected show only related item based on their ID in  the --Select A CDRL Number-- dropdown