Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter beothien

    (@beothien)

    Hi,

    Sure thing !

    So I followed your solution using the following onClick :
    jQuery('.cff-container-field.show').removeClass('show').next('.cff-container-field').addClass('show');
    (just updated .cff-container-field instead of .cff-container-div as it was not working apparently)

    To avoid the next button to then select unwanted div after the group of targeted siblings, I added this statement :

    if ( jQuery('.last-div').hasClass('show') ) {
      jQuery('.next-button').addClass('hide');
    }

    To just hide the next button (and another statement after to replace it with another with the same conditions).

    I assume it is not a very proper implementation but so far the behavior seems perfect !

    Thank you again codepeople for the tips ! I’ll use the “Contact Us” next time !
    Best Regards.

    Thread Starter beothien

    (@beothien)

    Hi codepeople.

    No problem, thanks to your tips I found a working solution!

    Thank you again.
    Best Regards

    Thread Starter beothien

    (@beothien)

    Hi codepeople,

    Many thanks for the quick reply.

    Yes sorry, I am a beginner in js and jQuery and I got trouble around it. Apologies again.

    Your solution could work, but then I have other divs inside my divs (to format the form with columns etc) as well as divs that should remain hidden and just serve as calculations (although I don’t necessarily need those divs, it was mostly a way to organize)
    With this onclick event, if I am correct, would it select then also the div containers inside my bigger container?

    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)