I’m very new to Javascript and have a query about a script I’m using.
I’m currently displaying content based on the dropdown menu selection using the following: http://jsfiddle.net/mcgarriers/wjLXk/
However, I’d like to rejig this form so if I select the “show two” option it will display both div1 & div2 and if I select “show three” it will display all the divs.
How do I achieve this with the code in my jsfiddle?
Many thanks for any help.
ive had a little fiddle try this, get all the child nodes form with in your mySpecialElements and then display them based on the count , this is prolby not the most effect way. this should help get you on your way.
BTW, you should make all you tag elements within mySpecialElements on one line, else will have issues with FF