Answer the question
In order to leave comments, you need to log in
How to send an array of IDs via GET in Bitrix?
I have radiobuttons
<fieldset class="filter-section">
<input type="radio" id="sect-id-4107" name="sect-id" value="19154,18495">
<label for="sect-id-4107">Шапочки</label>
<input type="radio" id="sect-id-4125" name="sect-id" value="4125">
<label for="sect-id-4125">Набородники</label>
<input type="radio" id="sect-id-4120" name="sect-id" value="4120">
<label for="sect-id-4120">Маски</label>
<input type="radio" id="sect-id-4171" name="sect-id" value="4171">
<label for="sect-id-4171">Экраны</label>
</fieldset>
$('#perchatkarf-filter').on('change', function(){
$.ajax({
url: 'ajax/index.php?ID='+$('input[name="sect-id"]:checked').val(),
type: 'GET',
beforeSend: function(){
$('#contentTest').css( "filter", "opacity(0.2)" );
},
success: function(res){
$('#contentTest').empty();
$('#contentTest').append(res);
$('#contentTest').css( "filter", "opacity(1)" );
},
error: function(){
alert('Error!');
}
});
});
"ELEMENT_ID" => [$_GET["ID"]],
GLOBALS['arrFilterFav'] = array('ID' => [$_GET["ID"]]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question