how to Disable Text Fields When Checkbox Is Checked…?
how to Disable Text Fields When Checkbox Is Checked…?
Wrong room (salah kamar), perhaps?
Yii::app()->clientScript->registerScript('textfield-disabled', "
$('#checkbox').click(function(){
if ($(this).is(':checked'))
$('#textfield').attr('disabled', true);
else
$('#textfield').attr('disabled', false);
});
");
thanks
where do we put this? on model? or view?
View.