I have a model in my application that has a hashtable. In my index.cshtml i want to set the value of a particular entry using javascript. Below is my piece of code:

$('input.optionselect').change(function () {
        var id = $(this).attr('id');

        alert(@this.Model.checkHT[
                        @:id;
                        ] = false);
    });

i get the error:

Cannot convert lambda expression to type 'object' because it is not a delegate type

Related posts

Recent Viewed