M
M
Mikhail Andryushchenko2015-11-18 13:28:10
JavaScript
Mikhail Andryushchenko, 2015-11-18 13:28:10

Removing class content?

There is a code:
This is only part of it.

<nav class="menu">
        <ul class="menu__list">
            <li class="menu__item"><a href="#">Информация</a></li>
            <li class="menu__item"><a href="#">Оставить отзыв</a></li>
            <li class="menu__item"><a href="#">Блог шерифа</a></li>
            <li class="menu__item"><a href="#">Гостиницы</a></li>
        </ul>
        <a href="#" class="menu__close"><img src="img/close.png" alt=""></a>
        <div class="logo">
          <a class="logo__link" href="index.html">
            <img class="logo__image" src="img/logo.png" width="138" height="70" alt="Седона">
          </a>
          <a href="#" class="menu__open"><img src="img/open.png" alt=""></a>
        </div>
      </nav>

How can I quickly remove the contents of a class? That is, instead of class="menu__open" it was - class="".
And so throughout the document
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cat Anton, 2015-11-18
@kaktyc0913

Change the regular expression class="[^"]+" to class="" through any IDE or a normal text editor.
176a6b8950b449bbbc35c4eff9f92775.png

V
Valera Udav, 2015-11-18
@TARAKANhoy

Use jQuery. For example, it
will remove all menu__item classes in all li tags.
Read more here

R
Rabinzon, 2015-11-18
@Rabinzon

If you use sublime text> ctrl+f type what you need and there is a "find all" button on the side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question