4 <div id="brapi_home_trial_details_div">
7 <input name="brapi_home_trials_id" id="brapi_home_trials_id" class="form-control" type="text" placeholder="TrialDbId e.g. 145" value="145"/>
8 <button class="btn btn-primary" name="brapi_home_trial_detail_submit" id="brapi_home_trial_detail_submit">Get Trial Details</button>
10 <div id="brapi_trials_details_div">
17 jQuery(document).ready(function() {
18 jQuery("#brapi_home_trial_detail_submit").click(function() {
21 'url': jQuery('#brapi_home_url_select').val()+'/brapi/v1/trials/'+jQuery('#brapi_home_trials_id').val(),
23 'success': function(response) {
24 console.log(response);
25 brapi_create_table(response.result, 'brapi_trials_details_div', undefined);
28 error: function(response) {
29 alert('An error occurred');