json not populating fields

json not populating fields

Hello sir

This might be silly question.

I can populate the form fields using JSON

I select a client from dropdown

and based on its value (id) i call JSON and populate the respective fields
 
what if the the client id  selected from dropdown is zero (normally starting item with id=0 like pleases select) )
  
My Json
where to put the initialization code so as to blank the fields populated earlier 
  1. $('#clientid').change( function() { //change ID when selected from dropdown 
  2. alert(   $('#clientid').val()); // correct value of client id is displayed 
  3. $.getJSON("clientreadjsonfill.php", {id: $('#clientid').val()}, function(data){
  4.                         $('#buildingname').val(data['buildingname']); // populate data  working
  5. $('#roomno').val(data['roomno']);
  6. $('#streetname').val(data['streetname']);
  7. $('#location').val(data['location']);
  8. $('#landmark').val(data['landmark']);
  9. $('city').val(data['city']);
  10. }).done(function(){
  11. $('#aaa').text('xxx'); // xxx is populated in div with id aaa
  12.                  
  13.       });
  14. });