简体   繁体   中英

refresh a Jquery form wizard

I use this form wizard LINK

this form wizard is inside of a modal, i want to return to the first step if is close the modal, i can reset the form but i cant refresh it

this is my code to open it

$("#crear-orden").click(function(){
    $('#myModal').modal('toggle');
    $("#myModal input[type='text']").val('');
    $("#myModal textarea").html('');          
});

and this is the code to try refresh/reload

$(".close").click(function(){
    $('#myModal').load();
});

On close event of the window call:

$("#step-2").hide();
$("#step-3").hide();
$("#step-1").show();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM