Hi
I have two strongly Typed partial views (Developers list and Testers list) and the respective views are Developers.ascx and Testers.ascx
Now I want to load one partial view based on the radiobutton selected. The below code is not working on radio button change.
Code Snippet:
$('input:radio[name=Type]').change(function() {
var url = '/Home/Developers';
if ($(this).val() === '2') {
url = '/Home/Testers';
}
$("#result").load(url);
});
I tried $("input[name=Type]").click(function() But din't work.
I would appreciate if anyone can provide any clue why the partial view is not loading on change event. or some guidelines.
Thanks
Rita