$(document).ready(function() {
 $('#sel-service').change(function(){
  $('#sel-field option:gt(0)').remove();
		$.getJSON('modules/_fields.php', {service_id: $(this).find('option:selected').val()},
   function(data) {			
				$.each(data, 
					function(key, value) {   
						$('#sel-field').append($(document.createElement("option")).val(key).text(value)); 
					});
		 })  
	});		

})
