how can I hide and show the text field on checkbox check event?

Confluence User - 07 Jul, 2022

I have used the following code. But not working.


  if (($("input[name='required_air_ticket']").is(":checked")) == true) {
                $("select[name='travel_class']").removeAttr("disabled");
            } else {
                $("select[name='travel_class']").attr("disabled", "disbled");
            }

forms

2


08 Jul, 2022
confluenceUser
1
confluenceUser

Personally, I just use the section visibility to control it.

27 Mar, 2023
confluenceUser
confluenceUser

Thanks Ian

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print