WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
How to use a checkbox as a togglestatus for other checkboxes?? (1 post)

  1. DDT
    Member
    Posted 3 years ago #

    Hello,

    I like to use one checkbox which would disable other checkboxes??

    now with CF7 i am trying
    [checkbox no_workshop id:no_workshop "no workshops"]
    and i the header i like to use some jquery to check the status of no_workshop and disable other checkboxes

    something like

    if($("no_workshop is selected) {
                $("#workshopsdiv :checkbox:not(:checked)").attr("disabled", "disabled");
            } else {
                $("#workshopsdiv :checkbox").attr("disabled", "");
            }

    or create a toggleStatus function and add an onchange with the checkbox but how???

    regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic