replied on January 2, 2020
If you know the table is static, then you could show rows based off position of the row you want to show. For example, jquery hides all the rows until the user adds a stop. HIB row is static as the first row, so it is shown when HIB is selected and so forth.
$(document).ready(function () {
$('.cf-table tr').hide();
$('.cf-collection-block').on('change', '.stop select', showrows);
function showrows() {
$(this).each(function () {
if($(this).val() == "HIB"){
$(".cf-table tr:first-child").show();
}
if($(this).val() == "SRF"){
$(".cf-table tr:nth-child(4)").show();
}
if($(this).val() == "TNV"){
$(".cf-table tr:nth-child(6)").show();
}
if($(this).val() == "") {
$('.cf-table tbody tr').hide();
}
})
}
});