anchor.diff:              $j('#sample_attributes').replaceWith("<div id='sample_attributes'/>");
               $j('#sample_submit_btn').prop('disabled',true);
               $j('#sample_extra_details').hide();
  +            $j('#new_sample_type_link').show();
           }
       });
   
  
positive.code:                     $j('#sample_attributes').replaceWith(replacement);
                      $j('#sample_submit_btn').prop('disabled',false);
                      $j('#sample_extra_details').show();
                  },
                  error: function(data) {
                      $j('#sample_attributes').replaceWith("<div id='sample_attributes'/>");
  
negative.code:       <%= f.select :sample_type_id,
                     options_for_select(SampleType.all.collect { |st| [st.title, st.id] }, @sample.sample_type_id),
                     {:include_blank => 'Please select the appropriate Sample type' },:class => 'form-control' %>
          <span id="new_sample_type_link">or <%= link_to 'Define new sample type',new_sample_type_path %></span>
        </div>
    <% end %>
  
  