Note that there are some explanatory texts on larger screens.

plurals
  1. POset form parts invisible
    primarykey
    data
    text
    <p>I have one form with input fields. After the first part there are 2 buttons (external, internal) the external redirects you somewhere else the internal button should show (set visible) more input fields.</p> <p>like</p> <pre><code>&lt;form action="servlet_link" method="post"&gt; &lt;table class="ui-widget"&gt; &lt;colgroup width="350" span="2"&gt;&lt;/colgroup&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;p class="form"&gt; Familyname &lt;/p&gt;&lt;td&gt; &lt;input class="ui-widget-content ui-state-default ui-corner-all" name="familyname" type="text""&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p class="form"&gt; Givenname &lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;input class="ui-widget-content ui-state-default ui-corner-all" name="ustid" type="text"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;div class="center"&gt; &lt;!-- Buttons --&gt; &lt;table align="center"&gt; &lt;tr&gt; &lt;td&gt; &lt;!-- sends data post and redirects u --&gt; &lt;a href="javascript:document.forms[0].submit()" class="btn" name="extern"&gt;External&lt;/a&gt; &lt;/td&gt; &lt;td&gt; &lt;!-- shows more input fields and sets both buttons invisible --&gt; &lt;a href="???" class="btn" name="intern" &gt;Internal&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;!-- part 2 should be shown --&gt; &lt;table class="ui-widget"&gt; &lt;colgroup width="350" span="2"&gt;&lt;/colgroup&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;p class="form"&gt; Companyname &lt;/p&gt;&lt;td&gt; &lt;input class="ui-widget-content ui-state-default ui-corner-all" name="companyname" type="text""&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p class="form"&gt; address &lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;input class="ui-widget-content ui-state-default ui-corner-all" name="address" type="text"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;div class="center"&gt; &lt;!-- Buttons --&gt; &lt;table align="center"&gt; &lt;tr&gt; &lt;td&gt; &lt;!-- sends data post and redirects u --&gt; &lt;a href="javascript:document.forms[0].submit()" class="btn" name="extern"&gt;External&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>Do i have to give all elements a id tag and set it invisible through:</p> <p>JS:</p> <pre><code>function invisbleForm() { document.getElementById("companynameText").style.display ="block"; } </code></pre> <p>Is there better solution to do that ? thx for any help :)</p> <p><strong>UPDATE 1</strong></p> <p>Ok to set it visible and invisible is not the problem put i have a big white block on my page how can i dynamically resize it?</p>
    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.
    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