learning
learning

Reputation: 11725

jquery error for Editor

enter code hereI am having the following code in my view

@Html.EditrFor(m=>m.Date1)
@Html.EditrFor(m=>m.Date2)

In my jquery I am having

  var test = $("#Date1").Val();
              var test1 = $("#Date2").Val();

But its giving me errors and its not able top read the Date1 and Date2 Values.

Upvotes: 0

Views: 35

Answers (1)

Adeel
Adeel

Reputation: 19228

you are using captial V.

replace Val with val

Upvotes: 1

Related Questions