pass data to Html.TextBoxFor with JQuery

Posted by ognjenb on Stack Overflow See other posts from Stack Overflow or by ognjenb
Published on 2010-05-31T09:40:43Z Indexed on 2010/05/31 10:02 UTC
Read the original article Hit count: 229

Filed under:
|

In one of fields like this:

  <div class="editor-field" >
            <%= Html.TextBoxFor(model => model.Engineer1Id)%>
            <%= Html.ValidationMessageFor(model => model.Engineer1Id) %>
  </div>

I try to pass data with JQuery:

  var Id = $(this).attr("rel");
  $("#Engineer1Id").append(Id);

Why data doesn't put in specified field

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about asp.net-mvc