skip to Main Content

Value of JavaScript variable when creating html element using jQuery

I have the following jquery/Javascript code which creates a new button on the screen $("#prefixed-list").append(` <li class="list-group-item d-flex my-auto mx-auto border-0" order="9999999999"> <button type="button" class="btn btn-info mt-3" onClick="prefixCall(urlDomain, searchContent, offset)">Load More</button> </li> `); urlDomain, searchContent, offset are all variables defined…

VIEW QUESTION
Back To Top
Search