Answer the question
In order to leave comments, you need to log in
How to make ajax events on radioList?
Hello,
there is a radiolist in the form
$form->field($model, 'radiovar')->radioList([1 => 'Yes', 0 => 'No'])
Answer the question
In order to leave comments, you need to log in
as I understand it, it's about an AJAX
request to save the current values
and show new fields
without reloading the page
then to help JQuery:
$('input[type=radio]').change(function(){
var form = $(this).parens('form');
$.post(url, form.serialize(), function(resp){
if(resp=='OK') //показ остальных полей
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question