Custom Data Attributes for Individual Inputs
-
Hi,
Is it possible to pass custom data attributes, like the following, similar to classes and id’s for individual inputs?
[text* name id:name class:input data-item:item placeholder “Your Name”]
would translate to something like:
<input type=”text” name=”name” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required input” id=”name” data-item=”item” aria-required=”true” aria-invalid=”false” placeholder=”Your Name”>
This would be super helpful for extending functionality with JavaScript for inputs.
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Data Attributes for Individual Inputs’ is closed to new replies.