I have a Model as below:
public class Class1
{
public int Id { get; set; }
public DateTime Start { get; set; }
}
and I have an ActionResult
which is like this:
public ActionResult Create(Class1 model)
{
...
}
now, I want to fill Start
property from another external javascript
file using ajax
like this:
$.ajax({
url: "/Admin/Create",
dataType: "Json",
type: "Post",
data: Start:"..."
});
How can I access to another View
TextBox and fill that using ajax? What should I do in data on ajax?