jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

using the plugin in ASP.net environment

Open AmineHamrouni opened this issue 7 years ago • 3 comments

I tried to use this plugin in a ASP.net environment but there is an issue.

When rendered, all the content of the page is in a form tag and removes the form tag of the plugin:

<body>
    <form>
        /*other content*/
        <div id="form" class="wizard-big">
            <h1>step 1</h1>
            <fieldset>
                content
            </fieldset>
            <h1>step 1</h1>
            <fieldset>
                content
            </fieldset>
        </div>
    </form>
</body>

and this error shows up:

Uncaught Error: One or more corresponding step contents are missing
at R (jquery.steps.min.js:386)
    at d (jquery.steps.min.js:14)
    at HTMLDivElement.<anonymous> (jquery.steps.min.js:145)
    at Function.each (jquery-2.1.1.js:2)
    at n.fn.init.each (jquery-2.1.1.js:2)
    at n.fn.init.w (jquery.steps.min.js:137)
    at n.fn.init.a.fn.steps (jquery.steps.min.js:426)
    at HTMLDocument.<anonymous> (inquiry.js?v=1.0:3)
    at j (jquery-2.1.1.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.1.1.js:2)

AmineHamrouni avatar Mar 05 '17 09:03 AmineHamrouni

Have the same issue

hellboy81 avatar Sep 01 '17 15:09 hellboy81

I have the same issue

marcelosanchez avatar Feb 21 '19 17:02 marcelosanchez

wizard take it in document ready

for example:

$(document).ready(function () {
        var wizard = $("#steps-checkout").steps({
            enableContentCache: true,
            headerTag: "h1",
            content: "div",
            enableAllSteps: false
        });
});

mealinux avatar Jun 08 '20 12:06 mealinux