• Hi there,

    I have trouble getting specific option selected in gravity form Enhanced UI Select. I’d like to make specific option selected when checkbox selected.
    Gravity form Enhanced UI select seems to use Jquery Chosen, I guess.

    For example, when checkbox is checked, selected Option 1 would be selected.

    const checkbox = document.querySelector("#cbox");
    const select = document.querySelector("select");
    
    checkbox.onchange = (e) => {
        if(e.target.value) {
            select.selectedIndex = 1;
        }
    }

    My script doesn’t work.

    • This topic was modified 2 years, 5 months ago by miaaaaaa.
    • This topic was modified 2 years, 5 months ago by miaaaaaa.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gravity form enhnaced UI select’ is closed to new replies.