$filterTr = array(
'video' => array(
array (
'url' => array(
'filter' => FILTER_SANITIZE_URL,
'flags' => FILTER_REQUIRE_ARRAY,
),
'translators' => FILTER_SANITIZE_NUMBER_FLOAT,
'type' => FILTER_SANITIZE_NUMBER_FLOAT,
),
'flags' => FILTER_REQUIRE_ARRAY
)
);
$trailers = filter_input_array(INPUT_POST, $filterTr);
$('#addVideo').click(function(){
var newVideoItem = $('#original-video-item').clone();
var newSelectpicker = newVideoItem.find(".selectpicker");
newVideoItem.find('.video-item').each(function(index){ /* изменил на video-item*/
$(this).html(newSelectpicker.eq(index));
newSelectpicker.selectpicker();
});
newVideoItem.appendTo(".video-list");
});
<div class="video-list">
<div class="row" id="original-video-item">
<!-- новый div -->
<div class="col-md-4">
<div class="form-group video-item"> <!-- добавил video-item -->
<input type="text" name="video[url][]" class="form-control" placeholder="Ссылка на видео" maxlength="200" max="200">
</div>
</div>
<div class="col-md-4">
<div class="form-group video-item"> <!-- добавил video-item -->
<select class="selectpicker form-control" name="video[type][]" data-live-search="true">
<option>111</option>
<option>222</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group video-item"> <!-- добавил video-item -->
<select class="selectpicker form-control" name="video[actor][]" data-live-search="true">
<option>aaaa</option>
<option>bbbb</option>
</select>
</div>
</div>
</div>
</div>
<button type="button" id="addVideo" class="btn btn-danger">Добавить еще</button>
<div class="video-list">
<div class="row video-item" id="original-video-item">
<!-- новый div -->
<div class="col-md-4">
<div class="form-group">
<input type="text" name="video[url][]" class="form-control" placeholder="Ссылка на видео" maxlength="200" max="200">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select class="selectpicker form-control" name="video[type][]" data-live-search="true">
<option>111</option>
<option>222</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select class="selectpicker form-control" name="video[actor][]" data-live-search="true">
<option>aaaa</option>
<option>bbbb</option>
</select>
</div>
</div>
</div>
</div>
<button type="button" id="addVideo" class="btn btn-danger">Добавить еще</button>
<div class="video-list">
<div class="row video-item">
<div class="col-md-4">
<div class="form-group">
<select class="selectpicker form-control" name="video[type][]" data-live-search="true">
<option>111</option>
<option>222</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select class="selectpicker form-control" name="video[actor][]" data-live-search="true">
<option>aaaa</option>
<option>bbbb</option>
</select>
</div>
</div>
</div>
</div>
<button type="button" id="addVideo" class="btn btn-danger">Добавить еще</button>
<div class="row video-item">...</div>
? <div class="video-list">
<div class="row video-item">
<div class="col-md-4">
<div class="form-group">
<select class="selectpicker form-control" name="video[type][]" data-live-search="true">
<option>111</option>
<option>222</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select class="selectpicker form-control" name="video[type2][]" data-live-search="true">
<option>111-111</option>
<option>222-222</option>
</select>
</div>
</div>
</div>
</div>
<button type="button" id="addVideo" class="btn btn-danger">Добавить еще</button>
<form>
<input name="t1[]" value="Some string One" />
<input name="t1[]" value="Another String Two" />
</form>
$args = array(
't1' => array(
'name' => 't1',
'filter' => FILTER_SANITIZE_STRING,
'flags' => FILTER_REQUIRE_ARRAY)
);
$filterTr = array(
'video' => array(
'name' => 'video',
array (
'url' => array(
'filter' => FILTER_SANITIZE_URL,
'flags' => FILTER_REQUIRE_ARRAY,
),
'translators' => FILTER_SANITIZE_NUMBER_FLOAT,
'type' => FILTER_SANITIZE_NUMBER_FLOAT,
)
)
);
$trailers = filter_input_array(INPUT_POST, $filterTr);
Сергей спасибо большое за помощь! Работает!