I have 3 field collection 1st is parent in that having other 2 is child field collections.
- parent FC: Student Info
- child FC 1: English Info
- child FC 1: Maths Info
Set field setting "unlimited" to parent field collection(i.e Student Info).
Now I want hide 2 child field collection (i.e English Info and Maths Info) on click of "Add another item" I have hide child FC using jquery
For exmaple:
jQuery('.child1').hide();
jQuery('.child2').hide();
Child field collection hide initially, but if I click "Add another item" button then jquery removed and child FC shows. I have tried to bind click event in jquery but it's not working.