tags:

views:

49

answers:

1

How can I have ajaxoptions included in the following form:

   <form id="" action="<%=Url.Action("ChangePassword",new{Action="ChangePassword" }) %>" method="post" enctype="multipart/form-data">

A: 

What javascript (if any) library are you using?

Generally you set the options in script and not C# code.

To answer your comment:

In JQuery w/ Form Plugin like:

var options = { 
       target: '#output2' // target element(s) to be updated with server response 
}

$(function() {
   $("form").submit(function() { 

        $(this).ajaxSubmit(options); 

        return false; 
   });
});
ondesertverge
Can I have an example how to do that?
... look at the answer again.
ondesertverge