$('#dropdown').nextAll().hide() will hide all elements that follow.
http://docs.jquery.com/Traversing

or using CSS selectors:

$('#mydiv select:eq(1) ~ select').hide();
http://www.w3.org/TR/css3-selectors/#general-sibling-combinators

On Mar 29, 4:00 am, iceangel89 <iceange...@gmail.com> wrote:
> I am a something like cascading drop down, except i am dealing with
> not only drop downs.
>
> - user must select 1st drop down, then 2nd drop down displays
> - when user selects 2nd drop down, 3rd drop down displays ...
>
> but when user changes the selection of 1st drop down, it will update
> the 2nd drop down, then i want ALL elements after the 2nd drop down to
> hide, since they are dependent on the 2nd drop down selected value.
> how can i achieve this easily? how can i select * (all elements) after
> a specific element

Reply via email to