I have a html table as below
<table id="searchResults" class="compact-table" width="100%">
<thead>
<th><label id="Revenue"></label></th>
<th></th>
</thead>
I am naming the column headers as shown in the code but I want those column names to assign dynamically
I have placed a label named Revenue for that label I am assigning value using Jquery as below
var yearVal = $("#salesDashboardYearDropDown").val();
var monthVal = $('select#salesDashboardMonthDropDown :selected').text();
var revenueLastYear = (monthVal + ' ' + (yearVal - 1).toString()).toString();
$('#Revenue').html(revenueLastYear);
but it is not getting displayedenter code here
id="Revenue"?