Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML Tables and JavaScript
    primarykey
    data
    text
    <p>Is it possible to delete data in a table and replace it with new data using JavaScript? For instance you have text in a table and below that text you have a button that says "take quiz" and upon clicking the button the text goes away and the quiz appears. Then, after taking the quiz and clicking the submit button the quiz goes away and a thank you message appears. I am trying to figure out a way to keep the user on the same page. I have attached a screenshot to hopefully help explain what I am talking about.</p> <p><img src="https://i.stack.imgur.com/ydqID.png" alt="Quiz"></p> <pre><code>&lt;table width="1280" height="1024" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"&gt; &lt;tr&gt; &lt;td colspan="3"&gt; &lt;img src="images/asdfasd.gif" width="1280" height="239" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td rowspan="2"&gt; &lt;img src="images/asdf02.gif" width="110" height="785" alt=""&gt;&lt;/td&gt; &lt;td&gt;&lt;div id="vsp_copy"&gt;&lt;table width="1045" border="0"&gt; &lt;tr&gt; &lt;td height="543" &gt;&lt;h2&gt;VIDEO: THE REAL COST &lt;/h2&gt; &lt;iframe width="600" height="360" src="http://www.youtube.comdfas?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/td&gt; &lt;td&gt;&lt;h2&gt;sdfasdf&lt;/h2&gt; &lt;h2&gt;asdfa&lt;/h2&gt; &lt;h2&gt;asdf&lt;/h2&gt; &lt;p&gt;asdf &lt;/p&gt; &lt;p&gt;asdf&lt;/p&gt; &lt;p&gt;asdf &lt;/p&gt; &lt;p&gt;asdf&lt;/p&gt; &lt;p&gt;adfsdf&lt;/p&gt; &lt;p&gt;&lt;img src="images/asdfas.gif" width="357" height="37"&gt;&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload