Print Javascript text string in html

1

I have this problem: I define a text string in js:

htmo = "";
html += "<table class=  "+" table table-responsive table-bordered";

but the browser interprets it as follows

<table class="table" table-responsive="" table-bordered="">

they can tell me how to concatenate the string in such a way that the browser interprets it well (USO FIREFOX) Thanks

    
asked by Xavier Angeles 04.07.2018 в 14:10
source

1 answer

0

I have tried this concatenation and it seems that the result is what you are looking for. Try it:

html = "";
 html += "<table class='table table-responsive table-bordered'>";

Greetings.

    
answered by 04.07.2018 / 14:46
source