jQuery and dependencies
-
Hi I have a field (my-hidden-field) which I have set to ‘hide’ when the form loads by using jQuery. When a button (fieldname8) is clicked the onclick event is
onclick="jQuery('.my-hidden-field').removeClass('hide')"
This works fine, but I need to put the field (my-hidden-field) within a group that are dependencies of a checkbox. I am finding if I do this when the form loads and I click the checkbox to show the dependencies the field ‘my-hidden-field’ shows even though the button (fieldname8) has not been clicked to trigger the removeClass.
It seems like the initial ‘hide’ is not working, is there a way round this please?
Many thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘jQuery and dependencies’ is closed to new replies.