Answer the question
In order to leave comments, you need to log in
How to add onclick event to order_ajax?
There is code in js file
BX.create('A', {
props: {
href: 'javascript:void(0)',
className: 'btn btn-primary btn-lg btn-order-save'
},
html: this.params.MESS_ORDER,
events: {
click: BX.proxy(this.clickOrderSaveAction, this)
}
})
<a href="javascript:void(0)" class="btn btn-primary btn-lg btn-order-save">Оформить заказ</a>
<a href="javascript:void(0)" class="btn btn-primary btn-lg btn-order-save" onclick="событие(параметры); return true;">Оформить заказ</a>
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