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: 455062" data-attributes="member: 87030"><p>Thanks! This is the solution.</p><p></p><p>Next question about the multiple pages, in the code below he is showing some buttons after clicking on next. Only the type is not a submit type so I can't post my data.</p><p>Any idea how I can realise that? </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></blockquote><p></p>
[QUOTE="Skythrust, post: 455062, member: 87030"] Thanks! This is the solution. Next question about the multiple pages, in the code below he is showing some buttons after clicking on next. Only the type is not a submit type so I can't post my data. Any idea how I can realise that? [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] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
HTML Post with multiple pages
Top