Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
HTML Post with multiple pages
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 455070" data-attributes="member: 87030"><p>I had already tried that. </p><p></p><p>[CODE=html] </p><p><button type="button" id="prevBtn" onclick="nextPrev(-1)">Previous</button></p><p> <button type="submit" id="nextBtn" onclick="nextPrev(1)">Next</button></p><p>[/CODE]</p><p></p><p>[CODE=javascript]function showTab(n) {</p><p> // This function will display the specified tab of the form...</p><p> var x = document.getElementsByClassName("tab");</p><p> x[n].style.display = "block";</p><p> //... and fix the Previous/Next buttons:</p><p> if (n == 0) {</p><p> document.getElementById("prevBtn").style.display = "none";</p><p> } else {</p><p> document.getElementById("prevBtn").style.display = "inline";</p><p> }</p><p> if (n == (x.length - 1)) {</p><p> document.getElementById("nextBtn").innerHTML = "Submit";</p><p> } else {</p><p> document.getElementById("nextBtn").innerHTML = "Next";</p><p> }</p><p> //... and run a function that will display the correct step indicator:</p><p> fixStepIndicator(n)</p><p> }[/CODE]</p><p></p><p>Thing is only, that the 'Next' button is the 'Submit' button</p><p>[automerge]1577645313[/automerge]</p><p>Somebody any other idea's how I can fix it?</p></blockquote><p></p>
[QUOTE="Skythrust, post: 455070, member: 87030"] I had already tried that. [CODE=html] <button type="button" id="prevBtn" onclick="nextPrev(-1)">Previous</button> <button type="submit" id="nextBtn" onclick="nextPrev(1)">Next</button> [/CODE] [CODE=javascript]function showTab(n) { // This function will display the specified tab of the form... var x = document.getElementsByClassName("tab"); x[n].style.display = "block"; //... and fix the Previous/Next buttons: if (n == 0) { document.getElementById("prevBtn").style.display = "none"; } else { document.getElementById("prevBtn").style.display = "inline"; } if (n == (x.length - 1)) { document.getElementById("nextBtn").innerHTML = "Submit"; } else { document.getElementById("nextBtn").innerHTML = "Next"; } //... and run a function that will display the correct step indicator: fixStepIndicator(n) }[/CODE] Thing is only, that the 'Next' button is the 'Submit' button [automerge]1577645313[/automerge] Somebody any other idea's how I can fix it? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
HTML Post with multiple pages
Top