PratikShah111
asked on
SCRIPT1014: invalid character in jquery for IE 11
I am getting
IE11 throwing “SCRIPT1014: invalid character” for the below line of code
`<div class="comment">
<div class="${originClass}">
<p>${comment}</p>
<date><b>${sender}</b> ${date} <fromDB><divstyle= "visibility: hidden; width: 0px;">${fromDB}</div></fro mDB></date >
</div>
</div>`
looks like the issue is with "`". it works ok on chrome and firefox but IE seems to be having some issues with it.
IE11 throwing “SCRIPT1014: invalid character” for the below line of code
`<div class="comment">
<div class="${originClass}">
<p>${comment}</p>
<date><b>${sender}</b> ${date} <fromDB><divstyle= "visibility: hidden; width: 0px;">${fromDB}</div></fro
</div>
</div>`
looks like the issue is with "`". it works ok on chrome and firefox but IE seems to be having some issues with it.
so yes, it's about this character, just use simple quote or double quote escaping them inside the string if present
ASKER
can you give an example on how this can coded. i tried using simple quote and double quote and its still throwing an error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://kangax.github.io/compat-table/es6/