javascript - close id with a quote - concatenation jquery -


i have problem concatenation table id variable. problem seems to close id quote:

" 

this variable

var mytable = $('<table id=\"paymenttable' + cnt + '\"' + '></table>') 

the problem closing id after variable cnt.

in output stream of concatenating looks this:

<table id="paymenttable3> 

where 3 cnt-variable.

greatful help!

make it

var mytable = $('<table id=\"paymenttable' + cnt + '\"></table>') 

you closing single quote ' without closing double quote " first.


Comments

Popular posts from this blog

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -