Create a variable in jquery with html content
问题 Hi I am trying to create a variable in jquery that contains a table for outputting in different areas of a website. But it is giving me an error, and I do not understand why. Here is my JQUERY: var copy = "<table width='750' border='0' cellspacing='0' cellpadding='0'> <tr> <td>Tarifa valida desde:</td> <td>Tarifa valida hasta:</td> <td>Tarifa MXN</td> <td>Tarifa USD</td> </tr> <tr> <td><input type='text' name='from1' id='from1' class='date' /></td> <td><input type='text' name='to1' id='to1'