开发者

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.


you are using captial V.

replace Val with val

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜