I am adding dynamic row using jQuery.
Elements are coming perfectly but is not working as expected.
While I am selecting one select-option it is giving it's corresponding values. But in dynamic row it is not giving.
And also not getting CSS class also.
My jQuery Code:
$(".btn-add").click(function(){
    var markup = 
        "<tr>"+
            "<td>"+
                "<select class='js-example-basic-single' name='product_id[]'"+
                    "<option value='0'>Select Product</option>"+
                    "@foreach($products as $product)"+
                    "<option value='{{ $product->id }}'>{{ $product->productName }}</option>"+
                    "@endforeach>"+
                "</select>"+
            "</td>"+
            "<td>"+
                "<input class='form-control' type='text' name='itemDescription'/>"+
            "</td>"+
            "<td>"+
                "<input type='text' class='form-control' name='itemCost[]'/>"+
            "</td>"+
            "<td>"+
                "<input type='text' class='form-control' name='itemQuantity[]'/>"+
            "</td>"+
            "<td>"+
                "<button class='btn btn-danger btn-remove'>-</button>"+
            "</td>"+
        "</tr>";
    $("table tbody").append(markup);
});

 
     
    