I have a link name of "login".
It click "login" jquery dialog will open.
Dialog has two links. If click it link,shows content related to link.
Now i come to my problem. If again i click "login" link,it shows only changed content. But i want initial content only.
This is my one part of code.
$( "#login-form" ).dialog({
autoOpen: false,
height: 210,
width: 360,
modal: true,
show: "scale",
hide: "scale",
buttons: {
"Login": function() {
$("#login-frm").submit()
},
Cancel: function() {
$(this).dialog( "close" );
}
}
});
$( "#login" ).click(function(event) {
event.preventDefault();
$( "#login-form" ).dialog( "open" );
})
How can i do this?
$("#login-frm").submit()try to close your dialog:$(this).dialog( "close" ). It may help but I don't guaranty. Cheers!