I have an Ienumerable in my model that I return to my view and in the view I want to check for a specific value in the Ienumerable with jquery this.value (select list). Basically, if a specific value is selected from a select box that matches any of the values in the Ienumerable then I will display a checkbox for the next step in my process.

Like this...

$('#selectList').onChange(function {
if(@Model.IenumHere.contains(this.value)
{ Show checkbox })

});

This doesnt work as the jquery isnt seeing the values in Ienum.

Related posts

Recent Viewed