I been working on wizard . I been stuck in a tricky situation i.e
By default i am getting PREVIOUS , NEXT , FINISH . But i want to customize my wizard which having 4 stages . on stage 1 & 2 : next & save button stage 3 : send for approval stage 4 : approve or reject
So for 4 stages i created 4 DIV's like this similarly
@using (Html.BeginForm("Index", "Home", FormMethod.Post))
{
<div id="step-1">
<h2 class="StepTitle">Step 1: Account Details</h2>
<table cellspacing="3" cellpadding="3" align="center">
<td align="center" colspan="3"> </td>
<tr>
<td align="right"> @Html.LabelFor(m=>m.Lead_Id) </td>
<td align="left">
: @Html.TextBoxFor(model=>model.Lead_Id , new { @readonly="readonly" } )
</td>
</tr>
<tr>
<td align="right"> @Html.LabelFor(m=>m.Contact_Name) </td>
<td align="left">
: @Html.TextBoxFor(model=>model.Contact_Name )
</td>
</tr>
<tr>
<td align="right"> @Html.LabelFor(m=>m.Contact_Address</td>
<td align="left">
: @Html.TextBoxFor(model => model.Contact_Address)
</td>
</tr>
<tr>
<td align="right"> @Html.LabelFor(m=>m.Lead_Source)</td>
<td align="left">
: @Html.DropDownListFor(c=>c.Lead_Source, Model.lead_sources)
</td>
</tr>
<tr>
<td> <input type="submit" value="SAVE" id="btnsave" /></td> // on click it does postback call to controller which saves my data accordingly . fine with that
<td><input type="button" onclick="donno()" value="NEXT STAGE" id="btnNext"</td> // Issue is here and what i need is onclick of button need to move to second stage of wizard so i been thinking to write a logic on click method of button ?
</tr>
</table>
</div>
}
I donno HOW ? Is it possible to call the next stage i.e next DIV of stage-2 to show up on-click. Is there is any work around to bind DIV to the button . so on click of button that section of DIV should load in step2 of wizard .
Any better ideas are welcome and efforts are always appreciated .
Thanks & Regards