Hello,
Could anyone direct me to some sample script that makes a div or text visible only when a webform field in selected. So for example, in the below snippet, I want the text "Your username can only contain letters (A-Z) or numbers (0-9)" to be visible only when the user has selected "field1" in the form. Likewise, when the user leaves "field1," the text should become invisible again.
Many thanks!
Josh
Could anyone direct me to some sample script that makes a div or text visible only when a webform field in selected. So for example, in the below snippet, I want the text "Your username can only contain letters (A-Z) or numbers (0-9)" to be visible only when the user has selected "field1" in the form. Likewise, when the user leaves "field1," the text should become invisible again.
Many thanks!
Josh
Code:
<div id="username"> Username <p></p> <input type="text" id="field1" name="field1" size="20" tabindex="1"> <div id="usernote"> Your username can only contain letters (A-Z) or numbers (0-9) </div> </div>
Comment