insert html block and dynamic content

Solutions on MaxInterview for insert html block and dynamic content by the best coders in the world

showing results for - "insert html block and dynamic content"
Isabelle
01 Jan 2019
1document.getElementById("log-menu").innerHTML = `
2            <a href="#"> 
3               ${data.user.email}
4            </a>
5            <div class="dropdown-menu p-3 dropdown-menu-right">
6                <div class="form-group">
7                    <label for="email1">Logged in as:</label>
8                    <p>${data.user.email}</p>
9                </div>
10                <button onClick="getLogout()" ">Sign out</button>
11            </div>
12    `
13