开发者

jquery error for Editor

开发者 https://www.devze.com 2023-02-11 10:03 出处:网络
enter code hereI am having the following code in my view @Html.EditrFor(m=>m.Date1) @Html.EditrFor(m=>m.Date2)

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

精彩评论

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