S
S
Sergey Melnikov2015-11-03 14:40:57
Yii
Sergey Melnikov, 2015-11-03 14:40:57

How to change url for active form?

In the active form, I try to do it through onclick on the submit button , window.location.href = example, as soon as this.form.action
is written, the URL is formed, but then the first request is aborted and the form forms the second request, removing my parameters.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2015-11-04
@webinar

action in activeForm can be set through its properties and no need to sculpt onclick.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question