answersLogoWhite

0

Use Jquery .hide() and .show() functionality. That way one form can extend up to 4 pages and the final submit button will submit the button while just use the button element on the first 3 pages. A small example

<script type="text/javascript" language="javascript">

function showPart2()

{

$('#next').click(function()

{

$('#page1').hide();

$('#page2').show();

});

}

</script>

<body>

<form>

<div id="page1">

// Code here

<input type="button" name="next" id="next" onclick="javascript:showPart2();"/>

</div>

<div id="page2">

// Code here

// Similar 2 buttons to navigate to Previous & Next and functionality of hide & show

</div>

</form>

</body>

User Avatar

Wiki User

13y ago

What else can I help you with?