0

I have two partial view on parent views. First partial views is of questions where user will have a question listing with checkbox against each question.

Another partial view is for selected question which was selected from above partial view.Which shows selected question from above view.

Is there any way both can communicate like this? Any example will be highly appreciated. This both partial view be used at many places.

2
  • If there is one form in a view then your partial view will post values in the parent action. Rough scenario : main view have form and 2 partial view will be rendered within this form. Give it a shot, if it doesn't sorts your issue go for JQUERY Commented Jun 5, 2013 at 12:21
  • Main view is having one form and I am rendering two partial views in that. Commented Jun 5, 2013 at 12:25

1 Answer 1

3

The only way you'd be able to do that was by using jQuery on the parent view to react to the change events when you're actually selecting questions.

Something like:

$("#selectQuestion").change(function () {
    //show data in other view for $(this).val();
});
Sign up to request clarification or add additional context in comments.

2 Comments

This is not parent view. Partial view
Add the jQuery to the parent view. That's the only way to do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.