how to create HTML table inside the script in javascript -


i have javascript api send email in can use html, creating table inside not working , tables not show. here code:

<script>     $(document).ready(function(){         $("#commandemail1").click(function() {             presenter.command("emailsend",{                 "toemail": "imran.hussain@celeritas-solutions.com",                 "toname": "celeritas",                 "subject": "email test",                 "body": "single attachment",                 "bodyhtml":"<table width="200" border="1"><tr><td>&nbsp;</td><td>&nbsp;</td> </tr><tr> <td>&nbsp;</td><td>&nbsp;</td> </tr></table>",                  "attachments": [""]             });             return false;         });     }) </script> 

use single quotes inside double quotes

"<table width='200'... 

or can replace double quotes inside &quot;


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -