Classification

Name Vote
{Name}
All records

This example show how to populate nested blocks

Note:

Template uses jQuery for reading select data-option-selected attribute to identify its default values and then for applying selected attribute on its corresponding option

jQuery code:
        var selects = $(".select-option");
        $.each(selects, function(key,value){
            currentSelect = $(value);
            defaultValue = currentSelect.attr("data-option-selected");
            currentSelect.val(defaultValue);
        });
    
Back