How to add “on change” to a text input in contact form7?


I am converting a static theme to a wp-theme and I am working on forms with wpcf7 plugin.
I am wondering how can I write this code with wpcf7 text tag.

<input type="text" name="name" id="name" value="" onchange="this.setAttribute('value',this.value);" required/>

All what I could do is this

[text* name id:name]

my question is how can I add onchange to this text input ?

Zaki 1 month 0 Answers 10 views 0

Leave an answer