Sharing under the pseudo-code below:
Array listFromGridView = [a,b,c];
// get parent dropdownbox and save for future reference
var drop=$("#dropdownBoxID);
drop.bind('click',function(e){
// get all element in an array
Array tempList= listFromGridView;
// remove the element which was clicked
// $(this) = the dropdownbox, $(this).val() = selected value
tempList.remove( $(this).val() );
// iterate and hide rows
foreach( element el in tempListView)
// code for hide goes here
});
// Done :-)
seoul source
share