4 <div id="brapi_home_trait_detail_div">
6 <h4>Germplasm Details</h4>
7 <input name="brapi_home_traitdbid" id="brapi_home_traitdbid" class="form-control" type="text" placeholder="TraitDbId e.g. 70741" value="70741"/>
8 <button class="btn btn-primary" name="brapi_home_traitdbid_submit" id="brapi_home_traitdbid_submit">Get Trait Details</button>
10 <div id="brapi_trait_detail_result_div">
17 jQuery(document).ready(function() {
18 jQuery("#brapi_home_traitdbid_submit").click(function() {
20 'url': jQuery('#brapi_home_url_select').val()+'/brapi/v1/traits/'+jQuery('#brapi_home_traitdbid').val(),
22 'success': function(response) {
23 console.log(response);
24 brapi_create_table(response.result, 'brapi_trait_detail_result_div', undefined);
27 error: function(response) {
28 alert('An error occurred');