$(function() {
           if(map_flag == 0)
              $("#buttons").append('  <input type="button" value="Import" class="ui-state-default ui-corner-all" onclick="javascript:import_q();" />');
       });
function upload_1()
{
  $("#buttons").val('');
   $("#buttons").html('')
}
In upload_1 function how to remove the html that is appended in $("#buttons") i tried $("#buttons").val(''); $("#buttons").html('');
It didnt work
 
     
    