Похожие чаты

Guys, I have multiple elements like this one: <table class="todo-tasks" data-category-id="xxx"

data-todo-tasks>

I wanted to select all [data-todo-tasks] and select just one that have [data-category-id=x], how can I do that? I know that in jQuery there is a function that helps on doing this thing (https://api.jquery.com/filter/) but there's no similar in javascript.

in jQuery would be:
$('[data-todo-tasks]').filter('[data-category-id=x]')

1 ответов

27 просмотров
Rksdm- Автор вопроса

ok found the solution, I can write datasets together like css classes

Похожие вопросы

Карта сайта