html - hide or display field based on the checkbox value. if check box is selected display the label and field if not selected hide itin playframework -
I have a form where I want to show some fields based on the value of the checkbox.
Below is the code in my view
@checkbox (userModelForm ("isstudent"), '_label - & gt; & lt; font color = "gray" & gt; ; Student & lt; / font & gt; '_showConstraints - & gt; false) If this checkbox is selected I need to show the following input text if it does not hide @inputText (userModelForm ("Student ID"), '_label - & gt; font color = "gray" & gt; Student ID & lt; / font & gt; Class - & gt; "form-control", '_help - & gt;' Realtors, please enter your student ID, '' Terror -> UserModelForm.globalEr Ror)
thanks
I have a in a div I'll put @inputtext , which is hidden,
Comments
Post a Comment