Search code examples
javascriptshow-hide

Hide/Show block On Click


When I click on the button, the corresponding list should be shown, but it doesn't work correctly.

EGGS - Other list

MEAT - List

If you immediately click on - Nothing happens.

If click again on the EGGS, and then on the MEAT - everything is ok.

Help please!

jsfiddle.net/Xtrance/5vgjr1m2/2/


Solution

  • It's because all your input[name="radio-715"] elements have checked="checked" attributes. Remove these attributes.