У меня есть 2 тега div
<div class="one">
+
+++
+
</div>
второй тег div
<div class="two">
+ + ++++ + ++ + + +
+ ++ +++ + +++ ++ + +++
+ ++ + + ++ + + + + ++
</div>
Теперь, что я хочу найти, если .one
существует в .two
. Возможно ли, если да, как мы можем это сделать в javascript?
Обновление
Я хочу проверить шаблон +
. Я имею в виду
+
+++
+
существуют в .two
? Шаблон должен находиться в том же порядке в .two
.
@shub ответ, похоже, не работает. Вот JSFiddle ответа.