Is there a way to get an element in which there is a value with attribute that has multiple values of the attribute value different place Are there.
& lt; Div data-bound-included = "header-logo foot-logo" & gt; & Lt; / Div & gt; The problem with $ ('[data-bind-contains * = header-logo]') will return it to all that element $ ('[Data-bind-contains * = header-logo-something]'), , too. & lt; Div data-bound-included = "header-logo foot-logo" & gt; & Lt; / Div & gt; & Lt; Div data-bound-included = "header-logo-lover" & gt; & Lt; / Div & gt; Selector $ ('[data-bind-contains * = header-logo]') Both are my intention which will return.
(use the word in the attribute) Use match selector This will give you the word matched within the special value, so it will be < Code> yourword-something should be excluded
.
No comments:
Post a Comment