How to disable the content using the data selected by user from dropdown

How to disable the content using the data selected by user from dropdown.

Please see the attached image for the same.

Srinivasan A Paul Joseph: Please help me

u can accomplish by jquery on dropdown change event hide/show panel.

Hi

COuld you please help me in jquery. I am new to programming.

Thanks

Hi take this example brother… there are 3 controls DropDown List(nation, state, next_control) depending on the selected nation can have states on not so you show or hide the second dropdownlist and give some value to the next_control… You have to insert this on the upper part of your view, inside a php script…

Tell me if you need anything else… Greetings from Cuba…





Yii::app()->clientScript->registerScript('selection_act', "

$('#state').change(function(){


	var valor = $('#state').val();


	if(valor == '014'){

		$('#nation').show();

	}

	else{

		$('#nation').hide();

		$('#_next_control').val('2');

	}

});

");