-
|
I need to add a data attribute (data-foo-bar) on a text input field. Using the textField function doesn't like any attribute like that, even if I set it equal to true or "true". How do others get around this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You can either wrap the attribute name in quotes, or use underscores. I prefer quoting. "data-1p-ignore"=true or data_1p_ignore=true |
Beta Was this translation helpful? Give feedback.
You can either wrap the attribute name in quotes, or use underscores. I prefer quoting.
"data-1p-ignore"=true
or
data_1p_ignore=true