Say we have an element with a custom attribute
... bind-html="varName" ...
I want to find all elements with an attribute starting with "bind-",
then get the second part of this name, which is unknown, in this case "html".
And finally get the value "varName".
How did I achieve this with jQuery? I do not want to use the second attribute to describe attibute to bind (e.g., .. bind="varName" attr="html" ..)
source
share