J
JehanNYNJ
I have to put some html into a variable like so....
var html = '<TABLE cellspacing="5" border="0" .......
But within this html string I also need to have the code for a button
that traps the onclick method like so...
....<input type="button" name="Add Question" value="Repeat Question"
onclick="javascript:getQuestion( '3925','38497', '1' )" >....';
The problem is I am using double quotes for the onclick event and
single quotes for the variables. But I can not use single quotes becuz
the entire html variable is also under single quotes.
I am not sure how I can use escape sequences to help me here. Does
anyone have any suggestions?
var html = '<TABLE cellspacing="5" border="0" .......
But within this html string I also need to have the code for a button
that traps the onclick method like so...
....<input type="button" name="Add Question" value="Repeat Question"
onclick="javascript:getQuestion( '3925','38497', '1' )" >....';
The problem is I am using double quotes for the onclick event and
single quotes for the variables. But I can not use single quotes becuz
the entire html variable is also under single quotes.
I am not sure how I can use escape sequences to help me here. Does
anyone have any suggestions?