M
M
massef2019-06-11 16:45:00
JavaScript
massef, 2019-06-11 16:45:00

How to pass an ID to the Bitrix component call?

Hello.

<?$APPLICATION->IncludeComponent(
                    "rent.form",
                    "",
                    array(
                        'PRODUCT_ID' => $arResult['PRODUCT']['ID'],
                        "CACHE_TIME" => "0",
                        "CACHE_TYPE" => "N"
                    )
                );?>

There is such a component call
There is a list of elements, each has an ID attribute, I pull out this ID with JS and send a get request to the server for the necessary data, everything is ok. But I don’t know how to pass this ID from JS to the PRODUCT_ID parameter of the component.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question