Here is script
$('#first').change(function(){
switch ($(this).val())
{
case '1st':
$('.1st').show();
$('.2nd').hide();
break;
case '2nd':
$('.1st').hide();
$('.2nd').show();
break;
case '3rd':
$('.3rd').hide();
$('.3rd').show();
break;
case 'none':
$('.1st').show();
$('.2nd').show();
break;
}
});
In first Dropdown, All, Edit, Delete, Modify is given. I need like this..
If I click
Allin first dropdown, it should displayAll,051,052,111,123,222,444,555,777,888,911,999in second dropdown.If I click
Editin first dropdown, it should displayAll,051,052,111,123,222,444,555,777,888,911,999in second dropdown.If I click
Deletein first dropdown, it should display onlyAllin second dropdown.If I click
Modifyin first dropdown, it should display onlyAllin second dropdown.
I am having few doubts here.
Is it possible in jquery?you already used jquery