Jquery find all elements with custom attribute begin with, get rest of it's name and it's value

Viewed 2183

Let's say we have element with custom attribute

... bind-html="varName" ...

I want to find all elements with attribute beginning with "bind-",

then get second part of it's name, which is unknown, in this case "html".

And at last get it's value "varName".

How do i achieved this with Jquery? I don't want to use second attribute to describe attibute to bind (like .. bind="varName" attr="html" ..)

4 Answers
Related