Mobile menu link and open sub menu

Hello Pullo. Now it works exactly as i want it to work. Thank you so much. Only one question: can i replace this: var page = $(“#wb_indexText1”).text().trim(), with eg, var page = $(“.container”).text().trim(), or with some other existing class?

Thank you.

Sure. If you use a class name, then you’ll have to be more specific (e.g. h1.myclass), or make sure there is the only element on the page with that class.

OK, that’s great. Thank you.

So if i make eg, class=“link_fix” abowe the id=“wb_indexText1”… then in the .js file i can use var page = $(“div.link_fix”).text().trim(), Right?

Sure. As long as there is only one div with that class on the page. Personally speaking, I’d use the id, but that’s a matter of preferance.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.