I want to add a +
button to div
1 only if JavaScript enabled (otherwise it should not be there) and when user will click on +
button then div
2 will be open/close like accordion.
if div
2 is opened then +
icon should be changed into -
by default div
2 should be closed and if JavaScript would be disabled then it should open by default and +/-
icon should be hidden.
I want to do this with jquery.
Edit:
This code is working good for me ,
I just want to add +/-
icon also using JavaScript, if JavaScript would be disabled then it should open by default and +/-
icon should be hidden.
I will use image of +
and -
not text.