MVC Changed State with no query string

 I needed to take action if i was in the edit state of my page.  So in the controller I set a ViewBag object then from my jquery I checked the value

I needed to check a NO value in a checkbox if there was no textarea value in the model set


 var number = parseInt(@ViewBag.Edit);

            if (number == 1) {


                if ($("#TextAreaEngagement").val().length == 0) {

                    $("#chkEngagedNo").prop("checked", true);

                }

                

            }

Comments

Popular posts from this blog

Linq Exclude from separate list

Sorting Ascending and Descending

Linq Query Syntax vs Method Syntax