Show/hide control based on dropdown selection mvc 4 razor c#
Included javascript inside a @section scripts{} section and it started working,
@section scripts{ <script type="text/javascript">
$(function () {
$('#SelectedReportId').change(function () {
var value = $(this).val();
if (value == '1') {
$('#IncludePhotos').show();
} else {
$('#IncludePhotos').hide();
}
});
});</script>}